Skip to content

Instantly share code, notes, and snippets.

@salipro4ever
Created October 28, 2014 09:55
Show Gist options
  • Select an option

  • Save salipro4ever/f2d68be006f5549247c2 to your computer and use it in GitHub Desktop.

Select an option

Save salipro4ever/f2d68be006f5549247c2 to your computer and use it in GitHub Desktop.
Tutorial
Cấu hình như sau
http://fuelphp.com/docs/packages/parser/intro.html
Usage
Tất cả đều dùng parser() để lấy về object, cách sd tùy theo từng loại view, tham khao trên homepage cua nó.
$lex = View_Lex::parser();
echo $lex->parse(View::forge('welcome/index.lex'),$data);
$mustache = View_Mustache::parser();
echo $mustache->render(View::forge('welcome/index.lex'), $data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment