summaryrefslogtreecommitdiff
path: root/framework/prado-cli.php
diff options
context:
space:
mode:
authorwei <>2007-01-17 11:55:40 +0000
committerwei <>2007-01-17 11:55:40 +0000
commit912dc30b43330a3e99a3e1f947ff14de108a3701 (patch)
tree064a66120c95b043de9f9d56fb52d3e66bfe3e81 /framework/prado-cli.php
parent3dc598bc7c2604e24b9e0be1189d9d78b43737ea (diff)
Add address-book flex demo
Diffstat (limited to 'framework/prado-cli.php')
-rwxr-xr-xframework/prado-cli.php13
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);
}