Ejemplo n.º 1
0
 /**
  * Overrides the default display method to add caching support
  *
  * @param   bool        $cachable  Is this a cacheable view?
  * @param   bool|array  $urlparams Registered URL parameters
  * @param   null|string $tpl       Sub-template (not really used...)
  */
 public function display($cachable = false, $urlparams = false, $tpl = null)
 {
     $cachable = true;
     if (!is_array($urlparams)) {
         $urlparams = [];
     }
     $additionalParams = array('option' => 'CMD', 'view' => 'CMD', 'task' => 'CMD', 'format' => 'CMD', 'layout' => 'CMD', 'category_id' => 'INT', 'id' => 'INT', 'dlid' => 'STRING');
     $urlparams = array_merge($additionalParams, $urlparams);
     parent::display($cachable, $urlparams, $tpl);
 }