public function render() { $base = clone $this->getObject('request')->getBaseUrl(); $this->sitebase = (string) $base; $base->setQuery(array('option' => 'com_files')); $this->getObject('application')->getRouter()->build($base); $this->base = (string) $base; return parent::render(); }
public function render() { $base = clone $this->getObject('request')->getBaseUrl(); $this->sitebase = (string) $base; // FIXME: take out the hardcoded Itemid $base->setQuery(array('option' => 'com_files', 'Itemid' => 56)); $this->getObject('application')->getRouter()->build($base); $this->base = (string) $base; return parent::render(); }
protected function _initialize(Library\ObjectConfig $config) { $config->append(array('auto_assign' => false)); parent::_initialize($config); }