forked from m3nt0r/cakephp-twig-view
-
Notifications
You must be signed in to change notification settings - Fork 0
mmajorov/cakephp-twig-view
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/** * TwigView for CakePHP v0.4 * * About Twig * http://www.twig-project.org/ */ Install: ===================================================== 1) It's a plugin: clone/extract to APP/plugins/twig_view 2) Get the Twig library and put it in "vendors/Twig" Added as submodule: > git submodule init > git submodule update Alternative: download from http://github.com/fabpot/Twig/archives/master 3) Make the view-cache folder writeable APP/plugins/twig_view/tmp/views 4) Edit your app_controller.php and add/change: var $view = 'TwigView.Twig'; 5) Create your views with .tpl extension For example Views and Helper usage see: ===================================================== http://gist.github.com/589273 Started adding Snippets to a TextMate Bundle. ===================================================== TextMate is editor for Mac. Here are some Tab completions. form.c = {{ form.create('$1'$2) }}$3 form.i = {{ form.input('$1', ['label': '$2'|trans$3]) }} form.e = {{ form.end($1) }}$2 html.a = {{ html.link('$1'|trans, ['controller':'$2']) }} ... and so on Fast and simple. I think some editors on windows support bundles aswell.. anyway. wrote this mainly for myself. Will release my bundle at some point.
About
Implementation of Twig for CakePHP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published