We want to use dynamic menus in our website (specially but not
exclusively in "admin panel"). Obviously, our first thought was :
requestAction() + elements.
So, we declared $adminSidebar and a function named : menu() (in
app_controller).
$adminSidebar is set on null, and menu() return this variable in "sub"
controllers. Anything is ok.
But we have a problem, in some cases we need dynamic menus based on
functions ( add, view, edit, index...) and NOT based on whole
controller.
We are looking for a proper solution (can we avoid requestAction() ?).
We can call function from the controller itself. If my current page is
add(), call add() with requesAction(), but due to performance issue we
can't really do that (poor cache :()
Thanks in advance
And sorry english isn't my native language so..
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment