Re: Strange problem with App:Import of controller class

2008-11-22 Thread Daniel Hofstetter
Hi Alex, > I have two controller classes: > class PagesController extends AppController { > (...) >     function home() { >         App::import('Controller', 'NewsPosts'); >         $controller = new NewsPostsController(); >         $this->set('NewsGrouped', $controller->_getNewsGrouped()); >    

Strange problem with App:Import of controller class

2008-11-22 Thread Alex, the Marrch Ca'at
I have two controller classes: class PagesController extends AppController { (...) function home() { App::import('Controller', 'NewsPosts'); $controller = new NewsPostsController(); $this->set('NewsGrouped', $controller->_getNewsGrouped()); } (...) } and class NewsP