The problem has nothing to do with a variable on a model.
Think about what happens when you request any page...
You go to /
your controller before filter calls
$this->requestAction('/ssites/getSites',
in the beforeFilter for ssites/getSites your beforeFilter
calls requestAction again
in the beforeFilter for ssites/getSites your beforeFilter
calls requestAction again
etc.
I hope that clarifies the problem, you _need_ to break that loop.
I think it would be a much better idea to make the logic that is
generating your menu a component/element. I wrote a simple tutorial for
that on the wiki some time ago.
HTH, Cheers,
AD7six
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---