Re: Call ClassRegistry::init in bootstrap.php

2009-07-06 Thread gerhardsletten
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

Re: Call ClassRegistry::init in bootstrap.php

2009-07-06 Thread matt
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

Call ClassRegistry::init in bootstrap.php

2009-07-06 Thread matt
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