src/Loader.php
public function printPage(
        $template = PNF_DEFAULT_TEMPLATE,
        $templatePath = PNF_TEMPLATE_PATH,
        $viewPath = PNF_MODULE_PATH,
        $loadType = 'require_once'
    )
    {
        $this->setModulePath($viewPath);
        $template = $_SERVER['DOCUMENT_ROOT'] . $templatePath . $template;
        ob_start();
        $this->processLoad($template, $loadType);
        ob_end_flush();
    }
public function printPage(
        $template = PNF_DEFAULT_TEMPLATE,
        $templatePath = PNF_TEMPLATE_PATH,
        $viewPath = PNF_MODULE_PATH,
        $loadType = 'require_once'
    )
    {
        $this->setModulePath($viewPath);
        $template = $_SERVER['DOCUMENT_ROOT'] . $templatePath . $template;
        ob_start();
        $this->processLoad($template, $loadType);
        ob_end_flush();
    }
public function printPage ( $ template = PNF_DEFAULT_TEMPLATE , $ templatePath = PNF_TEMPLATE_PATH , $ viewPath = PNF_MODULE_PATH , $ loadType = 'require_once' ) { $ this -> setModulePath ( $ viewPath ) ; $ template = $ _SERVER [ 'DOCUMENT_ROOT' ] . $ templatePath . $ template ; ob_start ( ) ; $ this -> processLoad ( $ template , $ loadType ) ; ob_end_flush ( ) ; }
@brief prepare and show template

- set full path to views
- load template

@param string $template template name
@param string $templatePath path to templates catalog
@param string $viewPath path to views catalog
@param string $loadType switch of
- require_once
- require
- include_once
- include
@brief prepare and show template