mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing dead options.
This commit is contained in:
parent
fb2be781f2
commit
9967b10b58
1 changed files with 5 additions and 5 deletions
|
@ -191,25 +191,25 @@ class ViewTask extends Shell {
|
|||
|
||||
$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) {
|
||||
|
|
Loading…
Reference in a new issue