From 826a0ceb950872bb311addd24c1a8da76a1cccc6 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 19 Feb 2007 02:23:19 +0000 Subject: Add trace to active records and TDbCommand --- framework/prado-cli.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'framework/prado-cli.php') diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 0cd33a74..5ccef4bc 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -631,6 +631,8 @@ class PradoCommandLineActiveRecordGen extends PradoCommandLineAction if($this->_soap) { $prop .= << 2) + $input = explode(" ", trim($l)); + if(count($input) > 2) { $app_dir = '.'; if(Prado::getApplication()!==null) $app_dir = dirname(Prado::getApplication()->getBasePath()); - $args = array($args[0],$args[1], $args[2],$app_dir); - if(count($args)>3) - $args = array($args[0],$args[1], $args[2],$app_dir,'soap'); + $args = array($input[0],$input[1], $input[2],$app_dir); + if(count($input)>3) + $args = array($input[0],$input[1], $input[2],$app_dir,'soap'); $cmd = new PradoCommandLineActiveRecordGen; $cmd->performAction($args); } -- cgit v1.2.3