display() публичный Метод

YOU MUST NOT USE THIS TASK DIRECTLY IN A URL. It is supposed to be used ONLY inside your code. In the URL, use task=browse instead.
public display ( boolean $cachable = false, boolean $urlparams = false, string $tpl = null ) : void
$cachable boolean Is this view cacheable?
$urlparams boolean Add your safe URL parameters (see further down in the code)
$tpl string The name of the template file to parse
Результат void
Пример #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', 'id' => 'INT');
     $urlparams = array_merge($additionalParams, $urlparams);
     parent::display($cachable, $urlparams, $tpl);
 }