public function getTemplateManager() {
		// if the component has not been created yet
		if (!isset($this->templateManager)) {
			// create the component
			$this->templateManager = new TemplateManager($this->templatesPath, $this->frameworkStoragePath . self::TEMPLATES_CACHE_SUBFOLDER);

			// add the current instance as a global to the template manager
			$this->templateManager->addGlobal('app', $this);
		}

		// return the component
		return $this->templateManager;
	}
public function getTemplateManager() {
		// if the component has not been created yet
		if (!isset($this->templateManager)) {
			// create the component
			$this->templateManager = new TemplateManager($this->templatesPath, $this->frameworkStoragePath . self::TEMPLATES_CACHE_SUBFOLDER);

			// add the current instance as a global to the template manager
			$this->templateManager->addGlobal('app', $this);
		}

		// return the component
		return $this->templateManager;
	}
public function getTemplateManager ( ) { // if the component has not been created yet if ( ! isset ( $ this -> templateManager ) ) { // create the component $ this -> templateManager = new TemplateManager ( $ this -> templatesPath , $ this -> frameworkStoragePath . self :: TEMPLATES_CACHE_SUBFOLDER ) ; // add the current instance as a global to the template manager $ this -> templateManager -> addGlobal ( 'app' , $ this ) ; } // return the component return $ this -> templateManager ; }
Returns the template manager that can be used to add globals or filters

@return TemplateManager the template manager
Returns the template manager that can be used to add globals or filters