This method will also set the component to a property.
For example:
$this->loadComponent('Acl.Acl');
Will result in a Toolbar property being set.
public loadComponent ( string $name, array $config = [] ) : |
||
$name | string | The name of the component to load. |
$config | array | The config for the component. |
return |