protected function initPlugins($plugins = '') {
		if (is_dir(dirname(__FILE__).'/TwigPlugins')) {
			$this->loadPluginsFromDirectory(dirname(__FILE__).'/TwigPlugins');
		}
		
		if (isset($plugins)) {
			if (is_array($plugins)) {
				foreach ($plugins as $path) {
					$this->loadPluginsFromDirectory($path);
				}
			} elseif ($plugins != '') {
				$this->loadPluginsFromDirectory($plugins);
			}
		}
	}
protected function initPlugins($plugins = '') {
		if (is_dir(dirname(__FILE__).'/TwigPlugins')) {
			$this->loadPluginsFromDirectory(dirname(__FILE__).'/TwigPlugins');
		}
		
		if (isset($plugins)) {
			if (is_array($plugins)) {
				foreach ($plugins as $path) {
					$this->loadPluginsFromDirectory($path);
				}
			} elseif ($plugins != '') {
				$this->loadPluginsFromDirectory($plugins);
			}
		}
	}
protected function initPlugins ( $ plugins = '' ) { if ( is_dir ( dirname ( __FILE__ ) . '/TwigPlugins' ) ) { $ this -> loadPluginsFromDirectory ( dirname ( __FILE__ ) . '/TwigPlugins' ) ; } if ( isset ( $ plugins ) ) { if ( is_array ( $ plugins ) ) { foreach ( $ plugins as $ path ) { $ this -> loadPluginsFromDirectory ( $ path ) ; } } elseif ( $ plugins != '' ) { $ this -> loadPluginsFromDirectory ( $ plugins ) ; } } }
Init plugins and extra plugins on the engine

@param string|array Path(s) to plugins sirectory
Init plugins and extra plugins on the engine