diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index b9436174215..fc22e791b4a 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -811,6 +811,8 @@ public function render($view = null, $layout = null) { list($plugin, $className) = pluginSplit($model); $this->request->params['models'][$model] = compact('plugin', 'className'); } + } if ($this->uses === false || $this->uses === array()) { + $this->request->params['models'][$this->modelClass] = array('plugin' => $this->plugin, 'className' => $this->modelClass); } $models = ClassRegistry::keys();