Re: Correct way to add code to static pages

2008-05-31 Thread Marcelo Ruiz
Thank you! I guess a helper is what I needed. On 30 mayo, 19:16, francky06l <[EMAIL PROTECTED]> wrote: > > I want to know what is the correct way to add PHP to static pages (the > > ones that live in views/pages). I want to use a function across many > > pages. > > Probably in an helper. > > > >

Correct way to add code to static pages

2008-05-30 Thread Marcelo Ruiz
Hi, I want to know what is the correct way to add PHP to static pages (the ones that live in views/pages). I want to use a function across many pages. I also want to render an element in my home page, but I don't know where I should put the code to set the element's variables. Thanks! --~--~--