Created
November 21, 2013 09:05
-
-
Save adilshahzad/7578229 to your computer and use it in GitHub Desktop.
CActive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dataProviderSt = new CActiveDataProvider('VehicleLogbookTbl', array( | |
'criteria'=>array( | |
'select'=>'t.vehId, SUM(t.finalReading - t.iniReading) AS TMilg', | |
'group'=>'project.id', | |
'condition'=>'t.vehId=10', | |
//'order'=>'create_time DESC', | |
'with'=>array('project'), | |
), | |
'pagination'=>false, | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment