Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

victormickhan

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

Everything posted by victormickhan

  1. Разобрался) Да, я перепутал с расширениями(tpl и php) . Все дело в кэше,я его просто не чистил/обновлял. В контроллере в файл home.php вставил код: $this->load->model('catalog/category'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['tile']) { //tile - собственная переменная для check в админке $children_data = array(); $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']), 'thumb' => $image, ); } после вывел home.tpl
  2. Здравствуйте. Нужна помощь - не могу вывести категории(нужны свойства типа $categories["href"]) в файле шаблона $home.tpl. Попытки объявления переменной в контроллере файла home.tpl на подобии файлов контроллера header.tpl или category.tpl не увенчались успехом. Поммогите пожалуйста. Спасибо!!!
×
×
  • Create New...

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.