 
				
				(Алекс)
Эксперт
 
				Дата регистрации:
21.06.2013 14:56:26
Сообщений: 114
В курсе были созданы методы actionIndex и actionPage. Я делал по аналогии, но дополнял своим свойствами.
И в итоге у меня получилось что-то вроде:
public function actionIndex() {
         $this->title = "Главная страница";
         $this->meta_key = "Ключевые слова";
         $this->meta_desc = "Описание страницы";
         
         $menu_top = $this->view->render("menu_top", array(), true);
         
         $left_menu = $this->view->render("left_menu", array(), true);
         $quotes = $this->view->render("quotes", array(), true);
         
         $search = $this->view->render("search", array(), true);
         $stat = $this->view->render("stat", array(), true);
         $social = $this->view->render("social", array(), true);
         $advert = $this->view->render("advert", array(), true);
         
         $content = $this->view->render("main_page", array(), true);
         
         $this->render($content, $menu_top, $left_menu, $quotes, $search, $stat, $social, $advert);
}И так три метода (еще метод для 404 ошибки). Подскажите, как убрать тройное дублирование? 
			 
			 
		 
				 
			 
				 
				 
				 
				 
				
				