>
> So, its not possible in 1.1 or current versions of 1.2.
Which doesn't mean that you can't get this going anyway. Your main
performance concern is probably querying the db and building the array
needed for your navigation element, right? So in that case you can use
CakePHP's cache() function like this in your AppController:.beforeRender
function (or wherever you build your menu array):
----------------------------------------
$menu = cache('menu', null, '+1 day');
if (empty($menu))
{
$menu = $this->Menu->findAll(...);
// Code that might modifies $menu
cache('menu', serialize($menu));
}
else
{
$menu = unserialize($menu);
}
$this->set('menu', $menu);
--------------------------------------
The code above is untested but you should get the idea. Let me know if
this is useful ; ).
-- Felix
--------------------------
http://www.thinkingphp.org
http://www.fg-webdesign.de
gwoo wrote:
> This is a featured that is on the 1.2 roadmap.
> So, its not possible in 1.1 or current versions of 1.2.
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---