Dwoo implementation for CodeIgniter
Dwoo is a PHP based templating engine aimed as a replacement for Smarty 2.x using similar and alternative syntax. CodeIgniter-Dwoo is a simple implementation for using Dwoo in your CodeIgniter view files.
Download
Requirements
- Dwoo 1.1+
- CodeIgniter 1.7.x (not bothered testing it on earlier versions, any point?)
Requirements for Dwoo alone are:
- php 5.2.0 or above (might work below, it's a rough estimate)
- SPL and PCRE extensions (for php versions prior to 5.3.0)
- mbstring extension for some string manipulation plugins (especially if you intend to use UTF-8)
Installation
-
Download Dwoo and copy the main /dwoo/ folder into your system/application/libraries/ folder.
-
Copy libraries/MY_Parser.php to your system/application/libraries/ folder.
-
Copy config/parser.php to your system/application/config/ folder.
-
Create the folders: system/application/cache system/application/cache/dwoo system/application/cache/dwoo/compiled
-
Set the new folders file permissions to be writeable:
chmod -R 777 system/application/cache
Usage
$this->load->library('parser');
$this->parser->parse('dwoo_test', array('message' => 'OH HAI!'));
Download from GitHub.