/** * Loads a particular controller, and injects our layout view into it. * @param $class * @return mixed */ protected function loadController($class) { $controller = parent::loadController($class); $controller->layout = new View('layout'); $controller->layout->title = 'PHPCI'; $controller->layout->breadcrumb = array(); return $controller; }