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 with view elements.
it works well and i think it's flexible because of object inheritance
(creating app_controller descendants for the groups).
when i want to cache certain views like detailed product pages, i have
to exclude these boxes from the cache. as the documentation suggests i
use <cake:nocache> tag.
my problem is that if view cache is 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