Dwoo is a PHP5 template engine which is (almost) fully compatible with Smarty templates and plugins, but is written from scratch for PHP5, and adds many features.
Questions tagged [dwoo]
32 questions
8
votes
3 answers
Routing URLs in PHP
I'm working on a web page project. I decided to use Apache, PHP (5.1.7, version imposed by my service provider) and Dwoo (templating) for this purpose.
I want to route URLs to my templates. I'm aware there are many frameworks doing this kind of…

Juho Vepsäläinen
- 26,573
- 12
- 79
- 105
6
votes
2 answers
Break in Smarty's / Dwoo's foreach
About break
foreach ( $data as $k => $v ) {
if ( $k == 4 ) {
break;
}
}
every one knows.
Is there something similar in Smarty's or Dwoo's {foreach} function ?

hsz
- 148,279
- 62
- 259
- 315
4
votes
3 answers
How to include javascript script links to pyrocms page?
I'm using pyrocms to develop a system.
I know that, to include style links in header tag ''
in a page is by using $this->template->set_metadata().
But how can I include javascript links like that?
Any answer is appreciated.

Hafizul Amri
- 2,633
- 7
- 28
- 30
3
votes
1 answer
Codeigniter + Dwoo
I got problem when implementing my CMS using Codeigniter 1.7.2 and Dwoo. I use Phil Sturgeon Dwoo library. My problem is I want user create template from the admin panel, it means all template will be stored into database including all Dwoo variable…

pylady
- 129
- 1
- 2
- 9
3
votes
1 answer
Switch Case in dwoo syntax
How do you do a switch case syntax using Dwoo template engine.

Aivan Monceller
- 4,636
- 10
- 42
- 69
3
votes
1 answer
Best way to include view within view in Codeigniter template using Dwoo?
I am using Codeigniter 1.7.2 and Phil Sturgeon's wonderful Dwoo wrapper which allows me to use the Dwoo template library in Codeigniter - http://philsturgeon.co.uk/code/codeigniter-dwoo
I have a small question regarding the inclusion of other view…

Dwayne Charrington
- 6,524
- 7
- 41
- 63
2
votes
1 answer
Getting the first element of the array in Dwoo
I'm using template engine called Dwoo. How get the first element of the array without a loop?

akrisanov
- 3,212
- 6
- 33
- 56
2
votes
2 answers
Is there anything like Dwoo-s {with} or {loop} in Smarty 3 or earlier?
{with} and {loop} plugins in Dwoo template engine change default context for variable name resolution.
If in Dwoo you feed template:
{$arr.foo}
{with $arr} {$foo} / {$arr.foo} {/with}
with data:
array('arr' => array( 'foo' => 'bar' ))
it will…

Kamil Szot
- 17,436
- 6
- 62
- 65
2
votes
1 answer
Fatal error: Class 'Dwoo' not found inapplication/libraries/MY_Parser.php on line 57
Ok, I am having a class not found problem with Codeigniter (latest edition) and Dwoo while working with Phil Sturgeon's templating system. I have followed PHil's instructions found here. But when I run my application, I keep getting a Class 'Dwoo'…

Energetic Pixels
- 349
- 3
- 15
1
vote
0 answers
how to use php stream to block DWOO compile the cache files everytime?
I get a code from this thread that talking about blocking DWOO using php streams but I can't understand how to use this code. anyone can tell me how to use it?
recent problem:
I've got serious problem with my storage on web hosting because of a lot…

blankon91
- 521
- 3
- 15
- 39
1
vote
1 answer
How to disable created cache files at cache/dwoo/compiled folder on codeigniter?
I've got serious problem with my storage on web hosting because of a lot of cache files that created on at cache/dwoo/compiled folder. I developed my website using codeigniter framework. I want to disable this feature (auto created cache files at…

blankon91
- 521
- 3
- 15
- 39
1
vote
0 answers
How to define foreach loop with related array?
<{foreach item=_loop from=$_project}>
<{if $_loop[title] as $_loop[items]}><{$_loop[title]}><{/if}>
<{/foreach}>
I sorry that I newly work with dwoo template but dwoo project is dead, I know this wrong syntax applied but i would like example…

Smaller
- 107
- 2
- 11
1
vote
1 answer
Connecting to a database via Dwoo
I've just started learning the templating system Dwoo, and so far the basics are working (in regard to arrays).
However, I'm having trouble trying to get my pages to display content from a database.
The official documentation has very little on it,…

whitstone86
- 295
- 1
- 4
- 16
1
vote
0 answers
Include another template with a variabile in dwoo
Actually I'm using dwoo a PHP5 Template Engine. I configured it, used some of its functions but the only problem that I found for now it's including a template with a variable. I mean
I know that I can include another template from the template…

Keaire
- 879
- 1
- 11
- 30
1
vote
1 answer
How to use objects in templates in secure way
Modern template engines for php (say, dwoo or smarty) can use objects as variables. You can use {$obj->method()}, which is really convenient, and i am using this a lot.
But, there is a clear security problem with exporting directly objects from ORM,…

ts.
- 10,510
- 7
- 47
- 73