Exemple #1
0
function sys_render($buffer)
{
    // first replace headers
    // like css java scripts and ect
    $buffer = str_replace("</#PAGE_TITTLE#/>", \core\cls\browser\page::get_page_tittle(), $buffer);
    //LOAD HEADERS
    $buffer = str_replace("</#HEADERS#/>", \core\cls\browser\page::load_headers(false), $buffer);
    return $buffer;
}
Exemple #2
0
 protected function view_load($title, $content, $single_panel = false)
 {
     //Assign variables
     $this->raintpl->assign("page_headers", browser\page::load_headers(false));
     $this->raintpl->assign("page_title", $title);
     $this->raintpl->assign("page_content", $content);
     $this->raintpl->assign("single_panel", $single_panel);
     //draw and return back content
     return $this->raintpl->draw('core_panel', true);
 }