I think so its simple but not for me :) I want unload app_controller
in /app/controllers/sugest_controller.php
so i create
/app/xhr_controller.php extends Controller
class XhrController extends Controller {
public $components = array('xhr');
public $helpers = array();
public $uses = array();
}
/app/controllers/sugest_controller.php extends XhrController
App::import('App','XhrController',array('file'=>
'xhr_controller.php'));
class SuggestsController extends XhrController {
public $components = array('');
public $helpers = array();
public $uses = array();
public function index(){
echo 'test';
exit;
}
}
and my class cant load Fatal error: Class 'XhrController' not found in
C:\xampp\htdocs\miastonu\trunk\app\controllers\suggests_controller.php
on line 3
any ideas ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---