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
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
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
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
-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
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.
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
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
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
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
10 matches
Mail list logo