public function actionPageForTopic($title, $shablon) { $title = urldecode($title); if (Topic::findByTitle($title)) { $this->data->items = Topic::findByTitle($title)->stories; // $this->data->shablon=$shablon.'.html'; } $this->data->shablon = $shablon . '.html'; }
public function actionNewsForTopic($title) { $this->data->items = Topic::findByTitle($title)->stories; if (empty($this->data->items)) { throw new E404Exception('Рубрика не найдена'); } }