working on caching.

This commit is contained in:
Qiang Xue
2012-05-28 13:45:50 -04:00
parent 0c85d56b74
commit c225242290
28 changed files with 289 additions and 287 deletions

View File

@ -416,7 +416,7 @@ class MigrateCommand extends CConsoleCommand
{
if($this->_db!==null)
return $this->_db;
else if(($this->_db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection)
else if(($this->_db=\Yii::$application->getComponent($this->connectionID)) instanceof CDbConnection)
return $this->_db;
else
die("Error: CMigrationCommand.connectionID '{$this->connectionID}' is invalid. Please make sure it refers to the ID of a CDbConnection application component.\n");

View File

@ -112,7 +112,7 @@ EOD;
if(($_path_=@getenv('YIIC_SHELL_COMMAND_PATH'))!==false)
$_runner_->addCommands($_path_);
$_commands_=$_runner_->commands;
$log=Yii::app()->log;
$log=\Yii::$application->log;
while(($_line_=$this->prompt("\n>>"))!==false)
{