In a normal controller, it can use function intialize like this:
class GamesController extends ControllerBase
{
public function initialize()
{
$this->view->disableLevel(View::LEVEL_MAIN_LAYOUT);
......
}
}
But how to use initialize() function in Base Controller like this:
class ControllerBase extends Controller
{
public function initialize()
{
echo "hello";
}
}