loading a layout from a database

2009-02-02 Thread Aurelius

Hi!

Whats the best way to read a layout from the database?

Simply writing a model for the layout-table and using following layout-
code?
?php
echo $database_layout['top'];
echo $scripts_for_layout;
echo $database_layout['middle'];
$session-flash();
echo $content_for_layout; ?
echo $database_layout['bottom'];
echo $cakeDebug;
?

Or is there an more elegant way?

thx!
Aurelius
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: loading a layout from a database

2009-02-02 Thread Simz

Using elements?

On 2 fév, 15:14, Aurelius aurel...@temporaryinbox.com wrote:
 Hi!

 Whats the best way to read a layout from the database?

 Simply writing a model for the layout-table and using following layout-
 code?
 ?php
 echo $database_layout['top'];
 echo $scripts_for_layout;
 echo $database_layout['middle'];
 $session-flash();
 echo $content_for_layout; ?
 echo $database_layout['bottom'];
 echo $cakeDebug;
 ?

 Or is there an more elegant way?

 thx!
 Aurelius

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---