Exemple #1
0
 /**
  * Stringify
  * 
  * @return  string
  */
 public function __toString()
 {
     if ($this->renderedContent === null) {
         try {
             $this->renderedContent = $this->app->render($this);
             if (!is_string($this->renderedContent)) {
                 $this->renderedContent = (string) $this->renderedContent;
             }
         } catch (Exception $e) {
             $this->renderedContent = (string) $e;
         }
     }
     return $this->renderedContent;
 }