You are here

protected function Application::getController in Module Object Oriented Programming API 6

Same name and namespace in other branches
  1. 6.2 component/moopapi.component.inc \Application::getController()
  2. 7.2 component/moopapi.component.inc \Application::getController()
  3. 7 component/moopapi.component.inc \Application::getController()
1 call to Application::getController()
Application::getControllers in component/moopapi.component.inc

File

component/moopapi.component.inc, line 140

Class

Application
@todo Desc for Application.

Code

protected function getController($ctrl_name) {
  if (empty($this->controllers[$ctrl_name])) {
    $controller = ComponentFactory::get($this->app_name, 'Controller', $ctrl_name, $this->decorators_applied, $this->relations);
    $this->controllers[$ctrl_name] = $controller;
  }
  return $this->controllers[$ctrl_name];
}