public function actionLoad() { Payments::model()->deleteAll(); Trucks::model()->deleteAll(); ZReport::model()->deleteAll(); $this->render("load"); }
public function actionCheckzreport() { $date = $_GET["date"]; $zreport = ZReport::model()->findAll("date=:date", array(":date" => $date)); if ($zreport) { CJSON::encode($zreport); } else { echo "false"; } }
public function actionIndex() { $zreports = ZReport::model()->findAll(array("order" => "date")); $this->render('index', array("zreports" => $zreports)); }