Exemplo n.º 1
0
 function getItems()
 {
     require_once JPATH_SITE . DS . 'components' . DS . 'com_javoice' . DS . 'controllers' . DS . 'items.php';
     $items_controller = new JAVoiceControllerItems();
     $items = $items_controller->getItems();
     $this->assignRef('items', $items);
     $html = $this->loadTemplate('items');
     return $html;
 }
Exemplo n.º 2
0
 function get_top_popular()
 {
     $model = $this->getModel('items');
     $type_id = JRequest::getInt('type');
     $type = $model->getVoiceType($type_id);
     $this->assignRef('type', $type);
     JRequest::setVar('limit', JRequest::getInt('number_voices', 5));
     $items = JAVoiceControllerItems::getItems();
     $this->assignRef('items', $items);
     $this->setLayout('widget');
     $html = $this->loadTemplate('items');
     return $html;
 }