#1 /var/www/html/app/code/Magento/Backend/Model/Menu/Config.php(142): Magento\Framework\Config\Reader\Filesystem->read('adminhtml')
Спасибо за помощь. Разобрался. Код в топике рабочий. Это чисто магентовский прикол связанный с кешированием. Перетащил код в другое место, все заработало, там где нет жесткого кеширования.
$form->setUseContainer(true);
echo $form->toHtml();
$form->setForm($form);
{{block type="catalog/product_list" template="catalog/product/list.phtml" category_id="HomeProductsCategoryID"}}
{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}}
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php
$open = $this->isCategoryActive($_category);
$cur_category=Mage::getModel('catalog/category')->load($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
if ($immagine = $this->getCurrentCategory()->getImageUrl()): ?>
<div style="float: left; padding-right: 30px; text-align: center;">
<div class="linkimage">
<p>
<a href="<?php echo $this->getCategoryUrl($_category)?>">
<img src="<?php echo $immagine ?>" alt="<?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?>" width="135" height="135" />
<?php echo $_category->getName()?>
</a>
</p>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php $_maincategorylisting = $this->getCurrentCategory(); ?>
<?php $_categories = $this->getCurrentChildCategories(); ?>
<div class="subcat-listing">
<ul class="subcat-products">
<?php foreach ($_categories as $_category): ?>
<?php if ($_category->getIsActive()): ?>
<?php $cur_category = Mage::getModel('catalog/category')->load($_category->getId()); ?>
<?php $layer = Mage::getSingleton('catalog/layer'); ?>
<?php $layer->setCurrentCategory($cur_category); ?>
<?php if ($_imageUrl = $this->getCurrentCategory()->getImageUrl()): ?>
<li>
<a href="<?php echo $this->getCategoryUrl($_category) ?>" title="<?php echo $this->htmlEscape($_category->getName()) ?>">
<img src="<?php echo $_imageUrl ?>" width="auto" alt="<?php echo $this->htmlEscape($_category->getName()) ?>" />
</a>
<h3><?php echo $this->htmlEscape($_category->getName()) ?></h3>
<?php if ($_description=$this->getCurrentCategory()->getDescription()):?>
<p class="category-description"><?php echo $_description ?></</p>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<?php $layer->setCurrentCategory($_maincategorylisting); ?>
new Webinseform();
/**
* Retrive media gallery images
*
* @return Varien_Data_Collection
*/
public function getMediaGalleryImages()
{
if(!$this->hasData('media_gallery_images') && is_array($this->getMediaGallery('images'))) {
$images = new Varien_Data_Collection();
foreach ($this->getMediaGallery('images') as $image) {
if ($image['disabled']) {
continue;
}
$image['url'] = $this->getMediaConfig()->getMediaUrl($image['file']);
$image['id'] = isset($image['value_id']) ? $image['value_id'] : null;
$image['path'] = $this->getMediaConfig()->getMediaPath($image['file']);
$images->addItem(new Varien_Object($image));
}
$this->setData('media_gallery_images', $images);
}
return $this->getData('media_gallery_images');
}
$_product->getImage() # /a/s/asics-men-s-gel-kayano-xii.jpg
$_product->getSmallImage() # /a/s/asics-men-s-gel-kayano-xii-2.jpg
$_product->getThumbnail() # /a/s/asics-men-s-gel-kayano-xii-2.jpg
...
$_image->getFile() # в цикле даст список путей выше,
# если только изображение не исключено из коллекции в бэкэнде