public function __construct($options = array()) { $input = JFactory::getApplication()->input; $layout = $input->get('layout', '', 'word'); if ($layout == 'listings') { $this->paramsPrefix = 'category'; } parent::__construct($options); }
public function __construct() { // Ensure that the user is logged in EB::requireLogin(); parent::__construct(); }