Ejemplo n.º 1
0
 /**
  * Load template
  * 
  * @return none
  * 
  */
 public function buildFromTemplates() {
     $bits = func_get_args();
     $content = "";
     echo $content;
     foreach ($bits as $bit):
         if (strpos($bit, APP_PATH . 'static/html/') === false):
             $bit = APP_PATH . 'static/html/' . BM::getSetting('skin') . '/templates/' . $bit;
         endif;
         if (file_exists($bit) == true):
             $content .= file_get_contents($bit);
         endif;
     endforeach;
     $this->page->setContent($content); // update content in page builder
 }