Yii Framework Forum: Dwoo view renderer - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Dwoo view renderer Allows you to use Dwoo templates in Yii Rate Topic: -----

#1 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,780
  • Joined: 17-January 09
  • Location:Russia

Posted 13 October 2009 - 04:34 AM

This extension allows you to use Dwoo templates in Yii.

http://www.yiiframew...-view-renderer/
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#2 User is offline   jackass 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 05-January 09

Posted 20 November 2009 - 06:56 AM

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

#3 User is offline   kast 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-June 10

Posted 12 June 2010 - 04:16 AM

I had some difficulties to get the Dwoo view renderer installed, the english instructions at http://yiiext.google...r/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.c...nderer.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:
* Simply add the template file into the views folder, e.g: `/protected/views/site/index.tpl`
0

#4 User is offline   kaamoss 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 10-November 10

Posted 11 November 2010 - 01:29 PM

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users