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