Friday, August 3, 2012

To use controller function in model


 App::import('Controller', 'App');  
 $appController = new AppController();  
 $appController->constructClasses();  
 $appController->Session->setFlash('ACCESS DENIED');  
 $appController->redirect('/');  

No comments:

Post a Comment