diff options
author | wei <> | 2007-01-17 11:55:40 +0000 |
---|---|---|
committer | wei <> | 2007-01-17 11:55:40 +0000 |
commit | 912dc30b43330a3e99a3e1f947ff14de108a3701 (patch) | |
tree | 064a66120c95b043de9f9d56fb52d3e66bfe3e81 /framework | |
parent | 3dc598bc7c2604e24b9e0be1189d9d78b43737ea (diff) |
Add address-book flex demo
Diffstat (limited to 'framework')
-rwxr-xr-x | framework/prado-cli.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 4c3e7c61..0cd33a74 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -204,7 +204,11 @@ EOD; return Prado::getApplication(); } else + { + echo '+'.str_repeat('-',77)."+\n"; echo '** Unable to load Prado application in directory "'.$directory."\".\n"; + echo '+'.str_repeat('-',77)."+\n"; + } return false; } @@ -684,13 +688,12 @@ if(class_exists('PHP_Shell_Commands', false)) $args = explode(" ", trim($l)); if(count($args) > 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) - { - $app_dir = '.'; - if(Prado::getApplication()!==null) - $app_dir = dirname(Prado::getApplication()->getBasePath()); $args = array($args[0],$args[1], $args[2],$app_dir,'soap'); - } $cmd = new PradoCommandLineActiveRecordGen; $cmd->performAction($args); } |