postfilter.lang.php

From: Date: Mon, 24 Mar 2003 22:33:11 +0000
Subject: postfilter.lang.php
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8872@lists.php.net to get a copy of this message
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 (#8872) next »