Bluz\View\View::__construct PHP Method

__construct() public method

Create view instance, initial default helper path
public __construct ( )
    public function __construct()
    {
        // initial default helper path
        $this->addHelperPath(dirname(__FILE__) . '/Helper/');
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Layout constructor
  *  - init Layout helpers
  *  - call parent View constructor
  */
 public function __construct()
 {
     // init layout helper path
     $this->addHelperPath(dirname(__FILE__) . '/Helper/');
     // init view helper path
     parent::__construct();
 }