Re: Including a menu on some pages but not all

2008-05-14 Thread Mathew Nik Foscarini
http://book.cakephp.org/view/94/views#elements-97


- Original Message 
From: benjam <[EMAIL PROTECTED]>
To: CakePHP 
Sent: Wednesday, May 14, 2008 2:05:18 PM
Subject: Re: Including a menu on some pages but not all


Exactly what I was looking for.

Thanks.

On May 14, 11:56 am, Kyle Decot <[EMAIL PROTECTED]> wrote:
> create a file called menu.ctp in your views/elements folder. then you
> can include the menu by using:
>
> echo $this->renderElement("menu");


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



Re: Including a menu on some pages but not all

2008-05-14 Thread benjam

Exactly what I was looking for.

Thanks.

On May 14, 11:56 am, Kyle Decot <[EMAIL PROTECTED]> wrote:
> create a file called menu.ctp in your views/elements folder. then you
> can include the menu by using:
>
> echo $this->renderElement("menu");
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Including a menu on some pages but not all

2008-05-14 Thread Kyle Decot

create a file called menu.ctp in your views/elements folder. then you
can include the menu by using:

echo $this->renderElement("menu");
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Including a menu on some pages but not all

2008-05-14 Thread benjam

I apologize if this has been asked before, I looked but did not find
the answer I was looking for.

I know how to include a file in PHP, and here is what I am looking to
do:
in view.ctp:
-


Other view content here
-

What is the cake way of doing something like this?  Where menu.php
holds the top level menu?

And I know I can put nav in default.ctp, but I only want it shown on a
few select pages (all within the same controller scope).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---