Phil Sturgeon

Web developer, kayaker, outdoors madman and part-time alcoholic.


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

ZIP or TAR from GitHub.

Requirements

Requirements for Dwoo alone are:

Installation

  1. Download Dwoo and copy the main /dwoo/ folder into your system/application/libraries/ folder.

  2. Copy libraries/MY_Parser.php to your system/application/libraries/ folder.

  3. Copy config/parser.php to your system/application/config/ folder.

  4. Create the folders: system/application/cache system/application/cache/dwoo system/application/cache/dwoo/compiled

  5. 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.