renderSection() public méthode

If the named section is not supported, false will be returned.
public renderSection ( string $name ) : string | boolean
$name string the section name, e.g., `{summary}`, `{items}`.
Résultat string | boolean the rendering result of the section, or false if the named section is not supported.
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{errors}":
             return $this->renderErrors();
         default:
             return parent::renderSection($name);
     }
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case '{errors}':
             return $this->renderErrors();
         case '{pager}':
             return $this->renderPager();
         default:
             return parent::renderSection($name);
     }
 }