php type of include

View: New views
4 Messages — Rating Filter:   Alert me  

php type of include

by gabriel munteanu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
in php i have boxes like userLogin box, Categories box, header and footer , and all of them are separate files that include both the html [rife template i would say] and the logic [ in php , the userLogin has the action of the form, knows what to do if the user is logged in etc...] .

I figure that same thing can be done with rife , but can't figure how.

i have an index page with header and footer.
i cannot have them in 2 files, and from what i have seen in the examples, the way to go in this case, is to have them in the same file called a template, and there will be a VALUE tag or a BV tag  where the BODY goes, and i will replace it with some html in my implementation of the index element.
now, the userLogin element, has a template and a java implementation, and it is part of a subsite actually, called usersystem, that i want to reuse in many websites.
How can i integrate this userlogin box with as few changes as possible - ideally none - into my index page ?

i found a good example of what i want in the bamboo sources.
there is a template there bamboo-1.0rc3-source/src/templates/common/loginform.html
unfortunately i do not find where this template is used.

thank you in advance
Gabi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: php type of include

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gaby,

this should explain what you need:
http://rifers.org/wiki/display/RIFE/Embedded+elements

Hope this helps,

Geert


On 12 Jun 2008, at 11:56, gabriel munteanu wrote:

> Hi all,
> in php i have boxes like userLogin box, Categories box, header and  
> footer , and all of them are separate files that include both the  
> html [rife template i would say] and the logic [ in php , the  
> userLogin has the action of the form, knows what to do if the user  
> is logged in etc...] .
>
> I figure that same thing can be done with rife , but can't figure how.
>
> i have an index page with header and footer.
> i cannot have them in 2 files, and from what i have seen in the  
> examples, the way to go in this case, is to have them in the same  
> file called a template, and there will be a VALUE tag or a BV tag  
> where the BODY goes, and i will replace it with some html in my  
> implementation of the index element.
> now, the userLogin element, has a template and a java  
> implementation, and it is part of a subsite actually, called  
> usersystem, that i want to reuse in many websites.
> How can i integrate this userlogin box with as few changes as  
> possible - ideally none - into my index page ?
>
> i found a good example of what i want in the bamboo sources.
> there is a template there bamboo-1.0rc3-source/src/templates/common/
> loginform.html
> unfortunately i do not find where this template is used.
>
> thank you in advance
> Gabi
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: php type of include

by gabriel munteanu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks Geert, always there when in need , with the right answer.
 as Eddy Young said here: http://article.gmane.org/gmane.comp.java.rife.user/2284
quote: "It would be great if those who have used embedded elements to create components could share their
experience here." .
that is exactly what i want to create, some user system components [login/registration/forgot password/remember me .... ]
and then reuse these in my different projects.

it would be great if there would be such a list somewhere of reusable rife components.
and then, most of us just play with the templates.

gabi

On Thu, Jun 12, 2008 at 1:18 PM, Geert Bevin <gbevin@...> wrote:

Hi Gaby,

this should explain what you need:
http://rifers.org/wiki/display/RIFE/Embedded+elements

Hope this helps,

Geert


On 12 Jun 2008, at 11:56, gabriel munteanu wrote:

> Hi all,
> in php i have boxes like userLogin box, Categories box, header and
> footer , and all of them are separate files that include both the
> html [rife template i would say] and the logic [ in php , the
> userLogin has the action of the form, knows what to do if the user
> is logged in etc...] .
>
> I figure that same thing can be done with rife , but can't figure how.
>
> i have an index page with header and footer.
> i cannot have them in 2 files, and from what i have seen in the
> examples, the way to go in this case, is to have them in the same
> file called a template, and there will be a VALUE tag or a BV tag
> where the BODY goes, and i will replace it with some html in my
> implementation of the index element.
> now, the userLogin element, has a template and a java
> implementation, and it is part of a subsite actually, called
> usersystem, that i want to reuse in many websites.
> How can i integrate this userlogin box with as few changes as
> possible - ideally none - into my index page ?
>
> i found a good example of what i want in the bamboo sources.
> there is a template there bamboo-1.0rc3-source/src/templates/common/
> loginform.html
> unfortunately i do not find where this template is used.
>
> thank you in advance
> Gabi
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: php type of include

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gabi,

I agree that this would be a good thing and why I created the project  
RIFE/Contrib:
http://www.nabble.com/Kicking-off-RIFE-Contrib-to6353980s9330.html#a6353980

However, nobody ever was interested in contributing things there and  
updating the wiki with instructions of the reusable components they  
created. David HM Spector also has been talking about a common set up  
application components that he would made publicly available, but I  
think that this has been put on hold.

So please, if you want to contribute something and/or put the effort  
in listing/extracting existing embedded elements/subsite from the  
available projects ... go ahead! I'll be there to assist you when you  
run into problems and to provide you with the infrastructure to make  
it all publicly available.

Take care,

Geert

On 12 Jun 2008, at 12:31, gabriel munteanu wrote:

> thanks Geert, always there when in need , with the right answer.
>  as Eddy Young said here: http://article.gmane.org/gmane.comp.java.rife.user/2284
> quote: "It would be great if those who have used embedded elements  
> to create components could share their
> experience here." .
> that is exactly what i want to create, some user system components  
> [login/registration/forgot password/remember me .... ]
> and then reuse these in my different projects.
>
> it would be great if there would be such a list somewhere of  
> reusable rife components.
> and then, most of us just play with the templates.
>
> gabi
>
> On Thu, Jun 12, 2008 at 1:18 PM, Geert Bevin <gbevin@...> wrote:
>
> Hi Gaby,
>
> this should explain what you need:
> http://rifers.org/wiki/display/RIFE/Embedded+elements
>
> Hope this helps,
>
> Geert
>
>
> On 12 Jun 2008, at 11:56, gabriel munteanu wrote:
>
> > Hi all,
> > in php i have boxes like userLogin box, Categories box, header and
> > footer , and all of them are separate files that include both the
> > html [rife template i would say] and the logic [ in php , the
> > userLogin has the action of the form, knows what to do if the user
> > is logged in etc...] .
> >
> > I figure that same thing can be done with rife , but can't figure  
> how.
> >
> > i have an index page with header and footer.
> > i cannot have them in 2 files, and from what i have seen in the
> > examples, the way to go in this case, is to have them in the same
> > file called a template, and there will be a VALUE tag or a BV tag
> > where the BODY goes, and i will replace it with some html in my
> > implementation of the index element.
> > now, the userLogin element, has a template and a java
> > implementation, and it is part of a subsite actually, called
> > usersystem, that i want to reuse in many websites.
> > How can i integrate this userlogin box with as few changes as
> > possible - ideally none - into my index page ?
> >
> > i found a good example of what i want in the bamboo sources.
> > there is a template there bamboo-1.0rc3-source/src/templates/common/
> > loginform.html
> > unfortunately i do not find where this template is used.
> >
> > thank you in advance
> > Gabi
> >
> > >
>
> --
> Geert Bevin
> Terracotta - http://www.terracotta.org
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
>
>
>
>
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web