This extension allows you to use Dwoo templates in Yii.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
EDwooViewRenderer.php
README.md
changelog.txt
readme_en.txt
readme_ru.txt

README.md

Dwoo view renderer

This extension allows you to use Dwoo templates in Yii.

Resources

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions.
  • Download and extract Dwoo (dwoo-x.x.x.tar\dwoo) under protected/vendors/Dwoo.
  • Add the following to your config file 'components' section:
[php]
'viewRenderer'=>array(
  'class'=>'ext.yiiext.renderers.dwoo.EDwooViewRenderer',
    'fileExtension' => '.tpl',
    //'pluginsDir' => 'application.dwooPlugins',
),

Usage

  • Dwoo syntax.
  • Current controller properties are accessible via {$this->pageTitle}.
  • Yii properties are available as follows: {$Yii->theme->baseUrl}.
  • Used memory is stored in {$MEMORY}, used time is in {$TIME}.