mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
fixing acl console for help, #3024, updating bake controller task help
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5493 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
020841b989
commit
e4b57ef80f
2 changed files with 2 additions and 3 deletions
|
@ -279,6 +279,7 @@ class ShellDispatcher {
|
||||||
|
|
||||||
if ($command == 'help') {
|
if ($command == 'help') {
|
||||||
if (method_exists($shell, 'help')) {
|
if (method_exists($shell, 'help')) {
|
||||||
|
$this->shiftArgs();
|
||||||
$shell->help();
|
$shell->help();
|
||||||
exit();
|
exit();
|
||||||
} else {
|
} else {
|
||||||
|
@ -334,8 +335,6 @@ class ShellDispatcher {
|
||||||
if ($missingCommand && method_exists($shell, 'main')) {
|
if ($missingCommand && method_exists($shell, 'main')) {
|
||||||
$shell->startup();
|
$shell->startup();
|
||||||
$shell->main();
|
$shell->main();
|
||||||
} elseif ($missingCommand && method_exists($shell, 'help')) {
|
|
||||||
$shell->help();
|
|
||||||
} elseif (!$privateMethod && method_exists($shell, $command)) {
|
} elseif (!$privateMethod && method_exists($shell, $command)) {
|
||||||
$this->shiftArgs();
|
$this->shiftArgs();
|
||||||
$shell->startup();
|
$shell->startup();
|
||||||
|
|
|
@ -543,7 +543,7 @@ class ControllerTask extends Shell {
|
||||||
$this->out("\n\tcontroller <name>\n\t\tbakes controller with var \$scaffold");
|
$this->out("\n\tcontroller <name>\n\t\tbakes controller with var \$scaffold");
|
||||||
$this->out("\n\tcontroller <name> scaffold\n\t\tbakes controller with scaffold actions.\n\t\t(index, view, add, edit, delete)");
|
$this->out("\n\tcontroller <name> scaffold\n\t\tbakes controller with scaffold actions.\n\t\t(index, view, add, edit, delete)");
|
||||||
$this->out("\n\tcontroller <name> scaffold admin\n\t\tbakes a controller with scaffold actions for both public and CAKE_ADMIN");
|
$this->out("\n\tcontroller <name> scaffold admin\n\t\tbakes a controller with scaffold actions for both public and CAKE_ADMIN");
|
||||||
$this->out("\n\tcontroller <name> null admin\n\t\tbakes a controller with scaffold actions for CAKE_ADMIN");
|
$this->out("\n\tcontroller <name> admin\n\t\tbakes a controller with scaffold actions only for CAKE_ADMIN");
|
||||||
$this->out("");
|
$this->out("");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue