i don't really understand whats wrong with "elements" in your case?!!, you
may "call" as many elements as you wish from within your layout and .ctp
files! on the other hand you can create a separate layout for each case you
have and use { $this->layout } from your controller to render the proper
layout for the case that your controller action is performing.

On Mon, Oct 19, 2009 at 4:56 PM, kamiseq <kami...@gmail.com> wrote:

>
> hi,
> I just started with cakephp so maybe my question is just stupid.
>
> anyway form what I learned cakePHP uses layout with all static content
> that can be mixed with predefined $title_for_layout,
> $scripts_for_layout, $content_for_layout. but that implies that
> $content_for_layout holds continuous block of dynamic content returned
> from view.
>
> but what if my layout is composed from let say 3 separate pieces of
> dynamic code surrounded by static code. then I need to repeat all that
> static code in my view only to put everything into one variable
> $content_for_layout.
>
> is there any chance to put all static code into layout and use more
> than one variable for content that will be filled with dynamic content
> in my view.  OK I can use view as layout and elements for those
> separated parts. OR maybe I try something stupid here.
>
> hope somebody will throw some light into my head :)
> thanks
>
> >
>


-- 
http://phpirate.net

--~--~---------~--~----~------------~-------~--~----~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to