/** * Overrides AbstractController _setup to add a layout */ protected final function _setup() { /** * Checks if the View uses a layout and load the default */ if ($this->view->useLayout()) { $default_layout = '/' . DEFAULT_MODULE . '/' . DEFAULT_MODULE; $this->layout = $this->load->layout($default_layout); } parent::_setup(); }