lithium\console\command\Create::_default()
Run through the default set. model, controller, test model, test controller
Parameters
-
string
$name
class name to create
Returns
booleanSource
protected function _default($name) {
$commands = [
['model', $name],
['controller', $name],
['test', 'model', $name],
['test', 'controller', $name]
];
foreach ($commands as $args) {
$command = $this->template = $this->request->params['command'] = array_shift($args);
$this->request->params['action'] = array_shift($args);
$this->request->params['args'] = $args;
if (!$this->_execute($command)) {
return false;
}
}
return true;
}