Exemplo n.º 1
0
 /**
  * Lists all SendLog models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SendLogSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Exemplo n.º 2
0
 /**
  * Displays a single Mails model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $searchModel = new SendLogSearch();
     $dataProvider = $searchModel->search(['mail_id' => $id]);
     return $this->render('view', ['model' => $this->findModel($id), 'searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }