Skip to content

Commit

Permalink
allow rebaking all views based on available methods & templates
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Jul 29, 2009
1 parent bbc2562 commit a87b6cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/console/libs/tasks/view.php
Expand Up @@ -179,16 +179,17 @@ function _methodsToBake() {
* @return void
**/
function all() {
$actions = $this->scaffoldActions;
$this->Controller->interactive = false;
$tables = $this->Controller->listAll($this->connection, false);

$this->interactive = false;
foreach ($tables as $table) {
$model = $this->_modelName($table);
$this->controllerName = $this->_controllerName($model);
$this->controllerPath = Inflector::underscore($this->controllerName);
if (App::import('Model', $model)) {
$vars = $this->__loadController();
$actions = $this->_methodsToBake();
$this->bakeActions($actions, $vars);
}
}
Expand Down

0 comments on commit a87b6cd

Please sign in to comment.