Example #1
0
 public function actionBug()
 {
     //$this->layout = '//layouts/main';
     $model = new Bug();
     $dataProvider = $model->search([]);
     if (isset($_POST['Bug'])) {
         $model->attributes = $_POST['Bug'];
         $url = $model->send();
         //$this->redirect();
     }
     return $this->render('bug', array('model' => $model, 'dataProvider' => $dataProvider));
 }