Example #1
0
 /**
  * Get the handled template
  *
  * @return	mixed	The rendered template buffer or false
  */
 public function getBuffer()
 {
     $buffer = $this->initialize()->template->getBuffer();
     $areas = $this->template->getUnattendedAreas();
     $placeholders = $this->template->getUnattendedPlaceholders();
     // Check for placeholders and areas which have not been catched
     if (count($areas)) {
         $this->setError("The following areas have not been handled in <b>{$this->templateFile}</b>: " . implode(", ", $areas));
     }
     if (count($placeholders)) {
         $this->setError("The following placeholders have not been handled in <b>{$this->templateFile}</b>: " . implode(", ", $placeholders));
     }
     return $buffer;
 }