From 772c4714cde9fb9e620ab3c7dc5a39e097bfe7d4 Mon Sep 17 00:00:00 2001 From: gwoo Date: Fri, 1 Jun 2007 17:34:42 +0000 Subject: [PATCH] fixing missing passedArgs member in controller git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5228 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/tasks/controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cake/console/libs/tasks/controller.php b/cake/console/libs/tasks/controller.php index ecded4a09..24af9ceea 100644 --- a/cake/console/libs/tasks/controller.php +++ b/cake/console/libs/tasks/controller.php @@ -33,6 +33,8 @@ * @subpackage cake.cake.console.libs.tasks */ class ControllerTask extends Shell { + + var $task = array('Project'); function execute() { if(empty($this->args)) { @@ -119,7 +121,7 @@ class ControllerTask extends Shell { while ($adminRoute == '') { $adminRoute = $this->in("What would you like the admin route to be?", null, 'admin'); } - if($this->__addAdminRoute($adminRoute) !== true){ + if($this->Project->cakeAdmin($adminRoute) !== true){ $this->out('Unable to write to /app/config/core.php.'); $this->out('You need to enable CAKE_ADMIN in /app/config/core.php to use admin routing.'); exit(); @@ -453,7 +455,7 @@ class ControllerTask extends Shell { * @param string $type = Models or Controllers * @return output */ - function __doList($useDbConfig = 'default') { + function listAll($useDbConfig = 'default') { $db =& ConnectionManager::getDataSource($useDbConfig); $usePrefix = empty($db->config['prefix']) ? '' : $db->config['prefix']; if ($usePrefix) {