/** * 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]); }
/** * 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]); }