Put the code you had in bootstrap in your main app_controller.php in
the beforeFilter() function
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegro
To follow up my question, I found a work around by putting the
following into my Post controller
public function beforeFilter()
{
if(!$this->Post->Behaviors->enabled('Tree'))
{
$this->Post->Behaviors->attach('Tree', array('left' => 'left',
'right' => 'right'));
$th
Hi there,
Loving cakephp!
I'm fiddling around with dynamic routes in CakePHP and was getting on
fine until I realised that using App:import will allow me to use a
model within bootstrap.php but breaks any attached behaviors that
model may have for use in a controller.
If it helps, bootstrap cod