PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class Controller_Index extends Controller_Template {
- public $template = 'v_index';
- public function action_index()
- {
- $this->template->content = 'Главная страница';
- }
- public function action_catalog()
- {
- $this->template->content = 'Другая страница';
- }
- }