Monday, 26 August 2013

Yii createCommand not working

Yii createCommand not working

I use Yii MVC to develop code, and I have a code, that does not work;
I can't find the error, maybe you guys can;
$status = FileExtension::ACTIVE_STATUS;
$cmd = Yii::app()->getDb()->createCommand($sql);
$cmd->bindParam(":status", $status, PDO::PARAM_INT);
$arrObj = $cmd->queryAll();
Why don't I get results?

No comments:

Post a Comment