prefilter
| From: | Pupeno | Date: | Wed, 03 Jul 2002 06:23:56 +0000 |
| Subject: | prefilter | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5170@lists.php.net to get a copy of this message | ||
-----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:
// 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-----