Exemplo n.º 1
0
 public function actions()
 {
     //        $searchModel = Yii::createObject($this->searchClass);
     //        $dataProvider = $searchModel->{$this->searchMethod}(Yii::$app->request->queryParams);
     //
     //        return $this->controller->render($this->view, [
     //            'searchModel' => $searchModel,
     //            'dataProvider' => $dataProvider,
     //        ]);
     return ['my-orders' => ['class' => actions\ItemsList::className(), 'view' => 'myOrders', 'searchClass' => models\OrderSearch::className(), 'searchMethod' => 'searchMyOrders'], 'archive' => ['class' => actions\ItemsList::className(), 'view' => 'myOrdersArchive', 'searchClass' => models\OrderSearch::className(), 'searchMethod' => 'searchMyOrders2']];
 }
Exemplo n.º 2
0
 public function actions()
 {
     return ['template' => ['class' => ItemsList::className(), 'view' => 'template', 'searchClass' => OrderTemplateSearch::className(), 'searchMethod' => 'search'], 'create-template' => ['class' => CreateRecord::className(), 'view' => 'createTemplate', 'modelClass' => $this->_orderTemplate, 'redirectAction' => 'template'], 'update-template' => ['class' => UpdateRecord::className(), 'view' => 'updateTemplate', 'modelClass' => $this->_orderTemplate, 'redirectAction' => '/manager/order/template', 'findAttribute' => 'id']];
 }