Hello,
I have an AppController and some classes that extend the controller.
I.e:
class UsersController extends AppController
{
function UsersController ()
{
parent::AppCont roller();
}
.....
}
1) Is it the same using function UsersController () {} and function
_construct() {} ??
2) Is there a way not to have in every controller the
function UsersController () {parent::AppCon troller();}
Or in other way, is it possible for the parent construction function to
be executed automatically?
thanks
I have an AppController and some classes that extend the controller.
I.e:
class UsersController extends AppController
{
function UsersController ()
{
parent::AppCont roller();
}
.....
}
1) Is it the same using function UsersController () {} and function
_construct() {} ??
2) Is there a way not to have in every controller the
function UsersController () {parent::AppCon troller();}
Or in other way, is it possible for the parent construction function to
be executed automatically?
thanks
Comment