Возможно. Спасибо за пример.
А как получить $filter_query?
Так ничего не выводит: $filter_query = cmsCore::getController('content')->getActiveFiltersQuery();
Вот экшен подарков:
<?php
class actionGiftsIndex extends cmsAction {
public function run($cat_id = false, $recipient = false){
$page = $this->cms_core->request->get('page', 1);
$perpage = (empty($this->options['perpage']) ?
15 : $this->options['perpage']);
if ($cat_id){
$this->model->filterEqual('i.cat_id', $cat_id);
}
$total = $this->model->
limitPage($page, $perpage)->
getDataCount('gifts', false);
$items = $this->model->getData('gifts');
$cats = $this->model->getData('gifts_cats');
if ($recipient){
$recipient = $this->model_users->getUser($recipient);
if ($recipient){
$this->cms_template->setPageTitle(LANG_GIFTS_FOR . $recipient['nickname']);
$this->cms_template->setPageH1('<h1>' . LANG_GIFTS_FOR . $recipient['nickname'] . '</h1>');
$this->cms_template->addBreadcrumb(LANG_GIFTS_FOR . $recipient['nickname']);
}
} else {
$title = LANG_GIFTS_CONTROLLER;
if (!empty($cats[$cat_id])){ $title = $cats[$cat_id]['title'];
}
$this->cms_template->setPageTitle($title);
$this->cms_template->setPageH1('<h1>' . $title . '</h1>');
$this->cms_template->addBreadcrumb($title);
}
// Активный фильтры из GET параметров
$filter_query = cmsCore::getController('content')->getActiveFiltersQuery();
//parse_str($filter_query, $filter_active);
print_r($filter_query.'=============='); return $this->cms_template->render('main', array( 'total' => $total,
'items' => $items,
'cats' => $cats,
'cat_id' => $cat_id,
'recipient' => $recipient,
'page' => $page,
'perpage' => $perpage,
'filter_query' => $filter_active,
'page_url' => href_to($this->name, 'index'),
));
}
}
Проблема решена.