public function renderCRTypeDashboard() { $model = new Order ( 'search' ); $model->unsetAttributes(); // clear any default values $model->splsearch = Helper::CONST_Tomorrow; $model->hdnactionname = Helper::CONST_indexactionid; $timeslotmodel = new Persontimeslot; $timeslotmodel->unsetAttributes(); $timeslotmodel->slotdate = $model->splsearch; if ( isset( $_GET['Order'] ) ) { $model->attributes = $_GET['Order']; $timeslotmodel->slotdate = $model->splsearch; } $options = $this->prepareOrderGridOptions($model->hdnactionname, Helper::CONST_grid_Height_200); $this->render( $this->getView('index','index'), array( 'model' => $model, 'origin' => $model->hdnactionname, 'options'=> $options, 'fromdb' => true, 'timeslotmodel' => $timeslotmodel, ) ); }
/** * Manages all models. */ public function actionAdmin() { $model=new Persontimeslot('search'); $model->unsetAttributes(); // clear any default values if(isset($_GET['Persontimeslot'])) $model->attributes=$_GET['Persontimeslot']; $this->render('admin',array( 'model'=>$model, )); }