Exemplo n.º 1
0
 /**
  * 定义自己的action
  * @param $id
  * @return null|static
  */
 public function actionMyview($id)
 {
     p($_REQUEST);
     p($_POST);
     p($_GET);
     return TestModel::findOne($id);
 }
Exemplo n.º 2
0
 public function actionView($id)
 {
     return TestModel::findOne(63)->toArray();
 }