FuelPHP ver.1.2 supports PHPTAL template engine.
Installation
- Add
parsertopackagesinapp/config/config.php. - Get PHPTAL from http://phptal.org/ and put into
app/vendor/ - (optional) When you enable PHPTAL cache, make
app/cache/PHPTAL/folder writable.
Usage
Use View::forge('template.phptal') in Controller. (Extension phptal triggers View_Phptal)
View files should be located in app/views/ .
Notes
Default extension is .phptal
Set auto_filter_output to false in app/config/config.php. This setting disables output escape by FuelPHP. (FuelPHP escapes outputs by default.)
Be sure to Use FuelPHP ver.1.2 or later. (FuelPHP ver.1.1 does not support PHPTAL)