i rewrote the code of my boxes (searhbox, menu) to use session
variables and this works well with view caching, but i'm still
interested in alternative solutions, so if you have any idea please
help me out.

thanks,

gbk

On jún. 19, 16:18, "gbk *" <[EMAIL PROTECTED]> wrote:
> hi, and sorry for my bad english.
>
> my application has common parts which are visible on each page or a
> group of pages (search box, login / logout menu, etc.). i've
> implemented them using app_controller beforeRender withviewelements.
> it works well and i think it's flexible because of object inheritance
> (creating app_controller descendants for the groups).
> when i want tocachecertain views like detailed product pages, i have
> to exclude these boxes from thecache. as the documentation suggests i
> use <cake:nocache> tag.
> my problem is that ifviewcacheis enabled the only callable callback
> function is beforeFilter.
>
> var $cacheAction = array ('books/view' => '+1 hour', 'callbacks' =>
> true);
>
> my question is how can i keep modularity when caching views?
> maybe i should use session variables for these boxes defined in the
> beforeFilter. is it a good approach? any drawbacks? i know one: i
> can't use form->input with session variables, so i have to manually
> generate the form fields.
> is it possible to make beforeRender callable in the framework when
> callbacks set to true or it's a bad idea?
> ideas, opinions welcomed.
>
> thanks,
>
> gbk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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