Лучший Ответ snserg , 01 December 2014 - 13:21
раз все молчат - отвечу сам. обошелся строкой вида
controller=myctrl&task=index&app_id=1&&id=15&option=com_zoo&view=frontpage&layout=frontpage&
вот таким кодом выводим материал
$zappId = 1; // id приложения
$categoryId = 0; // категория, 0 - титульная страница
$order = ''; // cортировка
$offset = 0; // смещение
$limit = 50; // количество материалов
$template = 'catalog'; //шаблон приложения
$zapp = app::getInstance('zoo');
$renderer = $zapp->renderer->create('item');
$renderer->addPath($zapp->path->path("jbtmpl:$template"));
$renderer->addPath($zapp->path->path('component.site:'));
$itemModel = $zapp->table->item;
$items = $itemModel->getByCategory($zappId, $categoryId, false, null, $order, $offset, $limit);
foreach($items as $item) {
echo $renderer->render('item.teaser', array('item' => $item));
}
Перейти к сообщению


Тема закрыта









