我試圖用我的模型與搜索(自定義搜索功能)的替代品使用Yii型號和標準: public function combineCampInputByDate($startDate,$endDate) {
$criteria=new CDbCriteria;
$criteria->select = 'food.*,SUM(customer) AS customer, SUM(money) AS mon
在我SiteController.php public function actionIndex()
{
// renders the view file 'protected/views/site/index.php'
// using the default layout 'protected/views/layouts/main.php'
//$this->r
這是我的UserController中,指數操作,籽億生成的文件,從我的模型用戶: /**
* Lists all models.
*/
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('User');
$this->render('index',array(
'dat