Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing typo.

Removing newlines
  • Loading branch information...
commit 6eada280cf09c7c631adc462d59060457547ad7a 1 parent a4f6fdc
@markstory markstory authored
View
3  cake/console/libs/tasks/controller.php
@@ -168,7 +168,7 @@ function __interactive() {
$wannaBakeCrud = 'n';
$actions = 'scaffold';
} else {
- list($wannaBakeCrud, $wannaBakeCrud) = $this->_askAboutMethods();
+ list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();
$helpers = $this->doHelpers();
$components = $this->doComponents();
@@ -288,7 +288,6 @@ function bakeActions($controllerName, $admin = null, $wannaUseSession = true) {
$this->Template->set(compact('admin', 'controllerPath', 'pluralName', 'singularName', 'singularHumanName',
'pluralHumanName', 'modelObj', 'wannaUseSession', 'currentModelName'));
$actions = $this->Template->generate('objects', 'controller_actions');
-
return $actions;
}
View
2  cake/console/libs/templates/objects/controller_actions.ctp
@@ -26,7 +26,6 @@
$this->set('<?php echo $pluralName ?>', $this->paginate());
}
-
function <?php echo $admin ?>view($id = null) {
if (!$id) {
<?php if ($wannaUseSession): ?>
@@ -40,7 +39,6 @@
}
<?php $compact = array(); ?>
-
function <?php echo $admin ?>add() {
if (!empty($this->data)) {
$this-><?php echo $currentModelName; ?>->create();
Please sign in to comment.
Something went wrong with that request. Please try again.