Skip to content
Permalink
Browse files

Removing dead options.

  • Loading branch information...
markstory committed May 30, 2009
1 parent fb2be78 commit 9967b10b58cb9bfb6cb7cd0c046ca45231eecd2a
Showing with 5 additions and 5 deletions.
  1. +5 −5 cake/console/libs/tasks/view.php
@@ -191,25 +191,25 @@ function __interactive() {
$this->controllerName = $this->Controller->getName();
$this->controllerPath = low(Inflector::underscore($this->controllerName));
$this->controllerPath = strtolower(Inflector::underscore($this->controllerName));
$interactive = $this->in("Would you like bake to build your views interactively?\nWarning: Choosing no will overwrite {$this->controllerName} views if it exist.", array('y','n'), 'y');
if (low($interactive) == 'y' || low($interactive) == 'yes') {
if (strtolower($interactive) == 'y') {
$this->interactive = true;
$wannaDoScaffold = $this->in("Would you like to create some scaffolded views (index, add, view, edit) for this controller?\nNOTE: Before doing so, you'll need to create your controller and model classes (including associated models).", array('y','n'), 'n');
}
if (low($wannaDoScaffold) == 'y' || low($wannaDoScaffold) == 'yes') {
if (strtolower($wannaDoScaffold) == 'y') {
$wannaDoAdmin = $this->in("Would you like to create the views for admin routing?", array('y','n'), 'y');
}
$admin = false;
if ((low($wannaDoAdmin) == 'y' || low($wannaDoAdmin) == 'yes')) {
if (strtolower($wannaDoAdmin) == 'y') {
$admin = $this->getAdmin();
}
if (low($wannaDoScaffold) == 'y' || low($wannaDoScaffold) == 'yes') {
if (strtolower($wannaDoScaffold) == 'y') {
$actions = $this->scaffoldActions;
if ($admin) {
foreach ($actions as $action) {

0 comments on commit 9967b10

Please sign in to comment.
You can’t perform that action at this time.