protected function Application::getController in Module Object Oriented Programming API 7.2
Same name and namespace in other branches
- 6.2 component/moopapi.component.inc \Application::getController()
- 6 component/moopapi.component.inc \Application::getController()
- 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 135
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];
}