The controller ID is relative to this module. The controller class
should be namespaced under [[controllerNamespace]].
Note that this method does not check [[modules]] or [[controllerMap]].
public createControllerByID ( string $id ) : |
||
$id | string | the controller ID. |
Результат | the newly created controller instance, or `null` if the controller ID is invalid. |
public function createControllerByID($id) { if ($id == 'security' && !$this->enableSecurityHandler) { return null; } else { return parent::createControllerByID($id); } }