|
12345678910111213141516171819202122232425262728293031323334 |
- <?php
-
-
- namespace yii\rest;
-
- use Yii;
-
-
- class ViewAction extends Action
- {
-
-
- public function run($id)
- {
- $model = $this->findModel($id);
- if ($this->checkAccess) {
- call_user_func($this->checkAccess, $this->id, $model);
- }
-
- return $model;
- }
- }
|