Ejemplo n.º 1
0
 function __construct($tpl)
 {
     $this->tpl = $tpl;
     $config = array("tpl_dir" => "view/", "cache_dir" => "template_cache/");
     //add url tag
     parent::registerTag("({@.*?@})", "{@(.*?)(?:\\|(.*?))@}", function ($params) {
         // function called by the tag
         $tag = $params[1][0];
         $arg = $params[2][0];
         return Yeast::generateURI($tag, $arg);
     });
     parent::configure($config);
 }
Ejemplo n.º 2
0
 public function generateURL($tag, $args = NULL)
 {
     return Yeast::generateURI($tag, $args);
 }