You could also cache your elements, it depends how frequently they are
changing, but that's an alternative solution as well. (with cake 1.2)

On Nov 2, 12:37 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Oct 31, 11:53 am, "Cristi A." <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi everyone,
>
> > This is my first post and I am new to cakephp.
>
> > I decided to start from the basic so I am trying to move a simple HTML
> > web-site (mostly static pages) to cakephp and add an Administration
> > for a photo gallery with multiple categories.
>
> > The problem I encountered appeared early because the way the HTML was
> > designed,
> > so I need 2 $content_for_layout in my default layout, like this:
> > ********************
> > <div id="left_collumn">
> >     <?php echo $content1_for_layout ?>
> > </div>
>
> > <div> THE MAIN MENU</div>
>
> > <div id="right_column">
> >    <?php echo $content2_for_layout ?>
> > </div>
> > *****************
>
> > I've searched this group and found 3 threads started about this and 1
> > solution which involved  modifying the core of cake(not recommended
> > from obvious reasons).
>
> > All I need to know if this can be done without modifying the core, and
> > if yes ..how??
>
> > Also I was thinking that if this can not be done is it possible to
> > load an element inside a view and not a layout?
> > This way I could define THE MENU, FOOTER, HEADER as elements and
> > include them inside my views (not so sweet but would solve my
> > problem.)
>
> Why don't you define variables for these bits of dynamic content in
> your app controller and use these variables to output variable content
> in these elements?
>
> Elements don't have to be static. You might be interested in the links
> on this page:http://groups.google.com/group/cake-php/web/frequent-discussions
>
> hth,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to