Пример #1
0
 public function executeImage($request)
 {
     $options = $this->getParams(array('size'));
     if ($uri = EntityApi::getImage($this->entity['id'], $options)) {
         $this->redirect($uri);
     } else {
         $this->forward404();
     }
 }