Re: postfilter.lang.php

From: Date: Thu, 27 Mar 2003 00:04:34 +0000
Subject: Re: postfilter.lang.php
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8926@lists.php.net to get a copy of this message
Hello Joerg, Please take a look at http://jellycan.com/lang/ where you can find documentation regarding your problem. As far as I know, Smarty has a bug by not passing the id_compile variable from class to class, so in the docs I describe what you have to modify in order to make it work. Have in mind those docs are for a previous version of Smarty, I´ll be working on an update the next weekend. Ale. "Joerg Reinnarth" <reinnart@iskp.uni-bonn.de> escribió en el mensaje news:Pine.LNX.4.33.0303242327480.6882-100000@koons.cb.uni-bonn.de... > Hey, > I am trying to use postfilter.lang.php > > The test.php-File looks this way: > > $language = 'de'; > $tpl = new Smarty; > $tpl->load_filter('post','lang'); > $tpl->display("languages.html", null, $language); > > > In the postfilter.lang.php I use following codeline: > > include('languages/'.$smarty->compile_id.'/lang_main.php'); > > The Code doesn't work, because Smarty is unable to include the > file > > "languages//lang_main.php", > > which means, that the $smarty->compile_id is not set. > > I searched through Smarty.class.php to understand > where the variabel is set, but I couldn't find > where the problem is. > > Thank you for your help, > > Joerg Reinnarth >

« previous php.smarty.general (#8926) next »