示例#1
0
 /**
  * Sets up the templates directory path and the extra options for a
  * database engine.  The extra options are to be defined by the
  * specific engines.
  *
  * @access public
  * @param  Breeze\Application $application  An instance of the base Breeze Framework class.
  * @param  string $path                     The path to the templates directory
  * @param  array $options                   Extra options for setting up custom template engines
  * @return void
  */
 public function __construct(Application $application, $path = null, array $options = null)
 {
     $this->_dwoo = new \Dwoo();
     parent::__construct($application, $path, $options);
 }
示例#2
0
 /**
  * Sets up the templates directory path and the extra options for a
  * database engine.  The extra options are to be defined by the
  * specific engines.
  *
  * @access public
  * @param  Breeze\Application $application  An instance of the base Breeze Framework class.
  * @param  string $path                     The path to the templates directory
  * @param  array $options                   Extra options for setting up custom template engines
  * @return void
  */
 public function __construct(Application $application, $path = null, array $options = null)
 {
     $this->_smarty = new \Smarty();
     parent::__construct($application, $path, $options);
     $this->_smarty->register_function('partial', array($this, 'partial'));
 }