By Melmacian on
I already have a custom theme running with Smarty 2.6.22 in Drupal 5 and I would like to use smarty also with my own modules.
How do I do that?
Any examples?
Thanks!
I already have a custom theme running with Smarty 2.6.22 in Drupal 5 and I would like to use smarty also with my own modules.
How do I do that?
Any examples?
Thanks!
Comments
It's "working"
Ok, I got it somewhat working. But I needed to comment out this line from themes/engines/smarty/smartytemplate.php:
require_once realpath(ENGINE_PATH.'/inc/common.php');If it is enabled I get following error:
And there is no file called common.php in themes/engines/smarty/inc.
Version: // $Id: smartytemplate.php,v 1.6 2005/12/31 09:24:02 tclineks Exp $Is this package broken or what? I'm using version 5.x-0.1 ( http://ftp.drupal.org/files/projects/smarty-5.x-0.1.tar.gz ) and 2.6.22 version of Smarty.
Any ideas if this could lead in some problems later on?
But this is it is working (if the above line is removed):
module/mymodule/templates/index.tpl