public function actions() { $chnid = LuLu::getGetValue('chnid', ''); $channel = $this->getChannel($chnid); $table = DefineTable::findOne(['id' => $channel['table']]); $ret = $table->getFrontActions(); return $ret; }
protected function findModel($tb) { if (($model = DefineTable::findOne($tb)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }