public function getEngine() {
        if (!$this->_engine) {
            $engine = new \Decoda\Engine\PhpEngine();
            $engine->addPath(dirname(__DIR__) . '/templates/');

            $this->setEngine($engine);
        }

        return $this->_engine;
    }
public function getEngine() {
        if (!$this->_engine) {
            $engine = new \Decoda\Engine\PhpEngine();
            $engine->addPath(dirname(__DIR__) . '/templates/');

            $this->setEngine($engine);
        }

        return $this->_engine;
    }
public function getEngine ( ) { if ( ! $ this -> _engine ) { $ engine = new \ Decoda \ Engine \ PhpEngine ( ) ; $ engine -> addPath ( dirname ( __DIR__ ) . '/templates/' ) ; $ this -> setEngine ( $ engine ) ; } return $ this -> _engine ; }
Returns the current used template engine.
In case no engine is set the default php engine gonna be used.

@return \Decoda\Engine
Returns the current used template engine . In case no engine is set the default php engine gonna be used .