how to run a php project which required Yii framwork [on hold]

Home / Uncategorized / how to run a php project which required Yii framwork [on hold]

Question:
I want to run a PHP project(php-open-school-project) which requires a Web server, PHP 5 and Yii. I ran it on wamp-server. So first, two requirements are full fill.

I have downloaded and run Yii framework successfully as a separate module. But I don’t know how to connect it with php-open-school-project or how to full fill the Yii requirement from here??

Since its requirements cannot full fill. So, it throws exception written under the catch block.
try
{
if($this->_connection->enableProfiling)
Yii::beginProfile(‘system.db.CDbCommand.execute(‘.$this->getText().’)’,’system.db.CDbCommand.execute’);

$this->prepare();
if($params===array())
$this->_statement->execute();
else
$this->_statement->execute($params);
$n=$this->_statement->rowCount();

if($this->_connection->enableProfiling)
Yii::endProfile(‘system.db.CDbCommand.execute(‘.$this->getText().’)’,’system.db.CDbCommand.execute’);

return $n;
}
catch(Exception $e)
{
if($this->_connection->enableProfiling)
Yii::endProfile(‘system.db.CDbCommand.execute(‘.$this->getText().’)’,’system.db.CDbCommand.execute’);
$errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
$message = $e->getMessage();
Yii::log(Yii::t(‘yii’,’CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.’,
array(‘{error}’=>$message, ‘{sql}’=>$this->getText().$par)),CLogger::LEVEL_ERROR,’system.db.CDbCommand’);
if(YII_DEBUG)
$message .= ‘. The SQL statement executed was: ‘.$this->getText().$par;
throw new CDbException(Yii::t(‘yii’,’CDbCommand failed to execute the SQL statement: {error}’,
array(‘{error}’=>$message)),(int)$e->getCode(),$errorInfo);
}


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *