Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple Dwoo template engine implementation for CodeIgniter via Parser library.

branch: master

Fixed issue with protect var

This was changed to protected in later versions, and there was no real solution until I added the get_vars() method to the CI Loader.
latest commit ab9033e3db
Phil Sturgeon authored December 07, 2012
Octocat-spinner-32 config Upgraded MY_Parser to work with Dwoo 1.2-dev, security policies still… July 21, 2010
Octocat-spinner-32 controllers Minor changes June 24, 2011
Octocat-spinner-32 libraries Fixed issue with protect var December 07, 2012
Octocat-spinner-32 views Minor changes June 24, 2011
Octocat-spinner-32 .hgtags Added tag v2.0 for changeset a38a6a663766 July 23, 2010
Octocat-spinner-32 README.markdown Updated README with v2.0 details. July 23, 2010
README.markdown

CodeIgniter-Dwoo

Version: 2.0

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.

Requirements

  1. PHP 5.2+
  2. CodeIgniter 1.6.x - 2.0-dev
  3. Dwoo 1.2-dev (grab a copy from GitHub)

Requirements for Dwoo alone are:

  • 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

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

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

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

  4. Create the folders:

    application/cache application/cache/dwoo application/cache/dwoo/compiled

  5. Set the new folders file permissions to be write-able:

    chmod -R 777 application/cache

Usage

$this->load->library('parser');

$this->parser->parse('dwoo_test', array('message' => 'OH HAI!'));
Something went wrong with that request. Please try again.