protected createModel ( ) : |
||
return |
protected function createModel()
{
if ($this->config && isset($this->config['model'])) {
$class = '\\' . ltrim($this->config['model'], '\\');
return new $class();
}
return new User();
}