Ok, I guess placing the code in AppController is the best solution.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
On Dec 23, 2007 4:17 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> I have a lot of queries, that must be executed in every controller's
> every action. So I think the best thing to automate it is placing
> these queries in one component.
>
Maybe this would be best in AppController (and ca
I have a lot of queries, that must be executed in every controller's
every action. So I think the best thing to automate it is placing
these queries in one component.
The code looks like this:
class MenuComponent extends Object
{
var $categories = true;
var $controller = true;
function startup(&