Re: pages_controller

2011-02-27 Thread AD7six
On 26 feb, 22:58, Krissy Masters naked.cake.ba...@gmail.com wrote: Maybe because I never used it in my journey with Cake so far, but the pages controller. I understand the basic idea of rendering static pages display = some_page but how can you define different layouts for each rendered

RE: pages_controller

2011-02-27 Thread Krissy Masters
LOL...right! Thanks man. So simply overlooked. K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send

Re: RE: pages_controller

2011-02-27 Thread OldWest
Wish I would have made it to this post earlier : ) ... I ran into the same issue and complicated it beyond belief! But it's as simple as stated above. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: pages_controller

2011-02-26 Thread Ryan Schmidt
On Feb 26, 2011, at 15:58, Krissy Masters wrote: the pages controller. I understand the basic idea of rendering static pages display = some_page but how can you define different layouts for each rendered static page? All I can guess is pages_controller: function index (){ $this-layout

RE: pages_controller

2011-02-26 Thread Krissy Masters
-php@googlegroups.com] On Behalf Of Ryan Schmidt Sent: Saturday, February 26, 2011 8:39 PM To: cake-php@googlegroups.com Subject: Re: pages_controller On Feb 26, 2011, at 15:58, Krissy Masters wrote: the pages controller. I understand the basic idea of rendering static pages display = some_page

Re: pages_controller

2006-09-15 Thread John Zimmerman
I think you might be happier if you split the functionality into two different controllers.I have modified the default pages controller to add a few tweaks by first copying it to my app directory. I then renamed it to static_controller.php, modifying the code and the views directory appropriately.

Re: pages_controller

2006-09-15 Thread Chris Lamb
Afternoon. On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote: I have modified the default pages controller to add a few tweaks by first copying it to my app directory. I then renamed it to static_controller.php, modifying the code and the views directory appropriately. Did you

Re: pages_controller

2006-09-15 Thread [EMAIL PROTECTED]
Chris Lamb: Nice. It worked when I modified the roues.php :) it was not necessary to call the display function in test function. I had problems passing variables through the url, so I discarded the idea of modifying the original pages controller, and did it the same way as John did. John

Re: pages_controller

2006-09-15 Thread John Zimmerman
On 9/15/06, Chris Lamb [EMAIL PROTECTED] wrote: On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote: I have modified the default pages controller to add a few tweaks by first copying it to my app directory.I then renamed it to static_controller.php, modifying the code and the views directory

Re: pages_controller

2006-09-14 Thread Chris Lamb
Evening. On Thu, 14 Sep 2006 14:43:17 -0700, [EMAIL PROTECTED] wrote: I have added my own function to the pages_controller: function test() { $this-set('abc', 'something'); } The controller does load the correct view! (test.thtml) But the $abc var is Undefined! What's