Example #1
0
 public function actionPageOne($shablon, $id)
 {
     $this->data->item = Page::findByPK($id);
     if (empty($this->data->item)) {
         throw new E404Exception('Новость не найдена');
     }
     $this->data->shablon = $shablon . '.html';
 }
Example #2
0
 /**
 * PHOTO
 */
 public function actionPhoto($id)
 {
     $this->data->photos = Photo::findAllBy__page_id($id);
     $this->data->items = Page::findByPK($id);
 }