예제 #1
0
파일: Presenter.php 프로젝트: ytnuk/web
 public function loadState(array $params)
 {
     parent::loadState($params);
     if (!isset($params['web']) || !($this->web = $this->repository->getBy(['alias' => $params['web']]))) {
         $this->error();
     }
 }
예제 #2
0
파일: Presenter.php 프로젝트: ytnuk/web
 public function actionEdit(string $id)
 {
     if (!($this->entity = $this->repository->getById($id))) {
         $this->error();
     }
 }