コード例 #1
0
ファイル: ViewAction.php プロジェクト: hiqdev/hipanel-core
 /** {@inheritdoc} */
 protected function getDefaultRules()
 {
     return array_merge(['html | pjax' => ['save' => true, 'flash' => false, 'success' => ['class' => RenderAction::class, 'view' => $this->view, 'data' => function () {
         return $this->prepareData();
     }, 'params' => function () {
         return ['models' => $this->collection->models, 'model' => $this->collection->first];
     }]]], parent::getDefaultRules());
 }
コード例 #2
0
ファイル: IndexAction.php プロジェクト: hiqdev/hipanel-core
 protected function getDefaultRules()
 {
     return array_merge(['html | pjax' => ['save' => false, 'flash' => false, 'success' => ['class' => RenderAction::class, 'view' => $this->getView(), 'data' => $this->data, 'params' => function () {
         return ['model' => $this->getSearchModel(), 'dataProvider' => $this->getDataProvider()];
     }]]], parent::getDefaultRules());
 }