public function init($options) {
		
		$this->template = '';
		$this->template_data = '';
		
		$this->template_dir_orig = '';
		
		if ($options['templatepath'] != '') {
			$this->template_dir_orig = $options['templatepath'];
		}
		
		// compile dir is required and must be writable
		$this->compile_dir_orig  = $options['compiledir'];
		
		$this->caching = $options['usecache'];
		
		if ($this->caching) {
			$this->cache_dir    = $options['cachedir'];
		}
		
		$this->templates_extension = 'tpl';
		
		if ($options['extension'] != '') {
			$this->templates_extension = $options['extension'];
		}
		
		$this->initPlugins($options['templatingpluginsdir']);
		
		$this->template_vars = array();
	}
public function init($options) {
		
		$this->template = '';
		$this->template_data = '';
		
		$this->template_dir_orig = '';
		
		if ($options['templatepath'] != '') {
			$this->template_dir_orig = $options['templatepath'];
		}
		
		// compile dir is required and must be writable
		$this->compile_dir_orig  = $options['compiledir'];
		
		$this->caching = $options['usecache'];
		
		if ($this->caching) {
			$this->cache_dir    = $options['cachedir'];
		}
		
		$this->templates_extension = 'tpl';
		
		if ($options['extension'] != '') {
			$this->templates_extension = $options['extension'];
		}
		
		$this->initPlugins($options['templatingpluginsdir']);
		
		$this->template_vars = array();
	}
public function init ( $ options ) { $ this -> template = '' ; $ this -> template_data = '' ; $ this -> template_dir_orig = '' ; if ( $ options [ 'templatepath' ] != '' ) { $ this -> template_dir_orig = $ options [ 'templatepath' ] ; } // compile dir is required and must be writable $ this -> compile_dir_orig = $ options [ 'compiledir' ] ; $ this -> caching = $ options [ 'usecache' ] ; if ( $ this -> caching ) { $ this -> cache_dir = $ options [ 'cachedir' ] ; } $ this -> templates_extension = 'tpl' ; if ( $ options [ 'extension' ] != '' ) { $ this -> templates_extension = $ options [ 'extension' ] ; } $ this -> initPlugins ( $ options [ 'templatingpluginsdir' ] ) ; $ this -> template_vars = array ( ) ; }
Init a template engine. Accepts array of options

templatepath - path to smarty templates directory
compiledir	- path to templates compilation directory
usecache	- (true|false) Torns cache On/Off .
cachedir	- If cache is On then directory for cache files
extension	- Extension of template files. Default is tpl
templatingpluginsdir - Path (or array of paths) to folders where Smarty extra plugins are stored

@param array $options
Init a template engine . Accepts array of options