I started learning kohana and got stuck right away ... I can't load the file from views ... it gives an error. Here is the code
class Controller_Index extends Controller_Template { public $template = 'v_index'; public function action_index() { $this->template->title = 'Интернет-магазин'; $this->template->content = 'Главная страница'; } public function action_catalog() { $this->template->title = 'Интернет-магазин'; $this->template->content = View::factory("v_catalog");//тут проблема... } }
File code v_catalog.php
<h4><?= $title ?></h4> <table border='1' width='80%'> <thead> <tr>Наименоание</tr> <th>Цена</th> </thead> <tbody> <tr> <td>Товар 1</td> <td>100 руб</td> </tr> <tr> <td>Товар 2</td> <td>200 руб</td> </tr> </tbody> </table>
Tell me what's the matter? Screenshot with an error here