예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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);
 }