/** * Gets the Slick/Form default engine renderer * * @return EngineInterface */ public static function getEngine() { if (null === self::$instance) { Template::addPath(self::getPath()); $template = new Template(); self::$instance = $template->initialize(); } return self::$instance; }
/** * Registers the provided class name as an extension * * @param string|object $extension The class name or an instance * of EngineExtensionInterface interface * * @return Template */ public static function register($extension) { $template = new Template(); return $template->addExtension($extension); }