Hi friends,

I use ZF with Smarty for my apps.

But, now, I would like to use modules too.

My problem is that my compilation dir and template dir are fixed at
Smarty...and I would like to set it for each module I create, like:

application

-----admin
----------controllers
----------models
----------templates
----------templates_c
-----default
----------controllers
----------models
----------templates
----------templates_c

But I don't know how to change these two lines dynamically:

$this->_smarty->template_dir = $path.'application/views/';
$this->_smarty->compile_dir = $path.'application/views_c/';

The correct would be:

$this->_smarty->template_dir = $path.'application/module/views/';
$this->_smarty->compile_dir = $path.'application/module/views_c/';

Suggestions?

Reply via email to