This extension allows you to use Dwoo templates in Yii.
This extension allows you to use Dwoo templates in Yii.
I have some difficult to integrate Dwoo, why don’t you post a little basilar guide to use dwoo with yii.
Specially to integrate block in main layout.
Sorry for my english.
I had some difficulties to get the Dwoo view renderer installed, the english instructions at http://yiiext.googlecode.com/svn-history/r108/trunk/app/extensions/CDwooViewRenderer/readme_en.txt initially led to a white page, here’s how it worked for me:
Installation:
As the extension page on yiiframework.com the CDwooViewRenderer.php
was unfortunately missing, i found and downloaded it from http://code.google.com/p/yiiext/source/browse/trunk/app/extensions/Dwoo/CDwooViewRenderer.php?r=15
Copied CDwooViewRenderer.php to: protected/extensions/Dwoo/CDwooViewRenderer.php
Downloaded (http://dwoo.org/download) and extracted Dwoo (dwoo-x.x.x.tar\dwoo\) under protected/vendors/Dwoo
Copied Dwoo plugins folder to: protected/extensions/Dwoo/plugins
Added the following to config file (protected/config/main.php
) ‘components’ section:
'viewRenderer'=>array(
'class'=>'application.extensions.Dwoo.CDwooViewRenderer',
'fileExtension' => '.tpl',
// 'pluginsDir' => 'application.dwooPlugins',
),
Deploying first Dwoo view template:
/protected/views/site/index.tpl
EDIT: I got this working on my own, I’m rather embarrassed to admit that when I downloaded the extensions php file somehow it had some html encoded markup that was throwing php off. Nothing to see here, move along…
Hi,
I followed the steps above, however, when I go to index.php I get the following error:
include(CDwooViewRenderer.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Source File
C:\wamp\www\yii\framework\YiiBase.php(341)
my config values look like:
'viewRenderer'=>array(
'class'=>'application.extensions.Dwoo.CDwooViewRenderer',
'fileExtension' => '.tpl',
//'pluginsDir' => 'application.dwooPlugins',
),
I have the Dwoo plugins folder and CDwooViewRenderer.php in \protected\extensions\Dwoo and have all Dwoo files (folders cache, compiled, Dwoo, plugins) like Dwoo.php and dwooAutoload.php in \protected\vendors\Dwoo
Can someone help me understand where I’m going wrong here? Any help would be appreciated. Also I’m new to Yii so maybe I’m just not understanding something simple.
Thanks,
Matt