Re: [SMARTY] prefilter
| From: | Monte Ohrt | Date: | Wed, 03 Jul 2002 13:13:47 +0000 |
| Subject: | Re: [SMARTY] prefilter | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5174@lists.php.net to get a copy of this message | ||
Have your prefilter echo some debugging, like what it matches.
Pupeno wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a prefilter as discussed above, that looks fot start and end tags and trim whatever is outside that tags... for some reason it doesn't work in one case, just one case and I can't find anything special in that case, how can I debug that ? This is the complete code were it fails:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.// load the e-mail require("$DOCUMENT_ROOT/include/Smarty.class.php"); $tpl = new Smarty; $tpl->template_dir="$DOCUMENT_ROOT/../templates/"; $tpl->compile_dir="$DOCUMENT_ROOT/../tmp/templates_c/"; $tpl->config_dir="$DOCUMENT_ROOT/../config/"; $tpl->left_delimiter="{{"; $tpl->right_delimiter="}}"; $tpl->register_prefilter("trimStartEnd");$tpl->assign('newPassword', $newPassword); $tpl->assign($userInfo);$mailContents = $tpl->fetch("$lang/hush/sendpassmail.html");do you see anything wrong ? maybe a scope problem ? how can I debug it ? Thank you. - -- Pupeno: pupeno@pupeno.com http://www.pupeno.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9Iph/Lr8z5XzmSDQRAgqYAKC3iNqwKhEHbOZV8Ngr6bR1hl0RlQCfcgXH RvQKJY387xKFDIEMfuFBWW4= =jol0 -----END PGP SIGNATURE-----