Wednesday, August 24, 2011

Re: development best practices

Hi, I'm trying to do the same with latest Cake2.0

app/Controller/AppController.php
App::uses('Controller', 'MyAppController');
class AppController extends MyAppController { 	function test(){ die("boo"); } 
}

but cake can't find the Controller/MyAppController.php file ("Fatal error: Class 'MyAppController' not found")
I've tryed /Lib, /app/Lib, app/Controller without success..

Thanks in advance.
Luca

On 16/08/2011 10:08, euromark wrote:
I use a plugin "tools" where I have my "own" AppController, .. etc as Libs: /libs/my_app_controller.php MyAppController extends Controller {}  now I can use in all projects: AppController extends MyAppController {}  same for all other classes

No comments: