Skip to content

Commit

Permalink
Fixes baking of custom views. Was not setting path correctly or
Browse files Browse the repository at this point in the history
capturing content
  • Loading branch information
phishy committed Sep 28, 2011
1 parent 96a8d97 commit 932f07c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/console/libs/tasks/view.php
Expand Up @@ -343,11 +343,11 @@ function customAction() {
$this->hr();
$this->out(sprintf(__('Controller Name: %s', true), $this->controllerName));
$this->out(sprintf(__('Action Name: %s', true), $action));
$this->out(sprintf(__('Path: %s', true), $this->params['app'] . DS . $this->controllerPath . DS . Inflector::underscore($action) . ".ctp"));
$this->out(sprintf(__('Path: %s', true), $this->params['app'] . DS . 'views' . DS . $this->controllerPath . DS . Inflector::underscore($action) . ".ctp"));
$this->hr();
$looksGood = $this->in(__('Look okay?', true), array('y','n'), 'y');
if (strtolower($looksGood) == 'y') {
$this->bake($action);
$this->bake($action, true);
$this->_stop();
} else {
$this->out(__('Bake Aborted.', true));
Expand Down

0 comments on commit 932f07c

Please sign in to comment.