PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class Controller_Page extends Controller_Template {
- // Определяем шаблон по умолчанию
- public $template = 'main';
- public function action_about()
- {
- $content = View::factory('/pages/about');
- $this->template->title = 'О сайте';
- $this->template->description = 'Страница о сайте';
- $this->template->content = $content;
- }
- } // End Page