Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Обычный

About Severonik

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Пытаюсь написать свой модуль. Создаю свою модель в папке catalog\model\pricelist\tovar.php, контроллер в папке catalog\controller\pricelist\tovar.php и view в папке catalog\view\theme\default\template\pricelist\tovar.twig <?php class Modeltovartovar extends Model { public function getTovar() { $query = $this->db->query("SELECT c.*, d.*, p.*, cc.* FROM " . DB_PREFIX . "product_to_category c," . DB_PREFIX . "category_description cc" . DB_PREFIX . "product_description d," . DB_PREFIX . "product p WHERE c.product_id=d.product_id=p.product_id AND c.category_id=cc.category_id"); return $query->rows; } } <?php class Controllertovartovar extends Controller { public function tovarik() { $this->load->model('tovar/tovar'); $test = $this->model_tovar_tovar->getTovar(); $data['test'] = $test; } } Не могу понять передачу переменных в view и как отобразить страницу на сайте.

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.