Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow rebaking all views based on available methods & templates

  • Loading branch information...
commit a87b6cdf9193aec933972cf485ba167cf382bc9c 1 parent bbc2562
@AD7six AD7six authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  cake/console/libs/tasks/view.php
View
3  cake/console/libs/tasks/view.php
@@ -179,9 +179,9 @@ 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);
@@ -189,6 +189,7 @@ function all() {
$this->controllerPath = Inflector::underscore($this->controllerName);
if (App::import('Model', $model)) {
$vars = $this->__loadController();
+ $actions = $this->_methodsToBake();
$this->bakeActions($actions, $vars);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.