/** * Create a Controller * If the owner is not set (means we are not in a module) then * store the controller in $this->appController for later use. * * @param string $route * @param null $owner * @return array */ public function createController($route, $owner = null) { $ca = parent::createController($route, $owner); if (!$owner) { $this->appController = $ca[0]; } return $ca; }