On 19-02-2009 at 16:28:35 wrote:
Added that and PHP no longer dies. But I still can't get the Prefilter to
change the output even if I totally replace the source using:
filtered content";
}
}
$tpl = new PHPTAL('mytemplate.html');
$tpl->setPreFilter(new MyPreFilter());
echo $tpl->execute();
Hi,
> Sorry, manual fails to mention that you need to add
>
> require_once 'PHPTAL/Filter.php';
>
> to your code. I'll make that unnecessary in next version of PHPTAL.
>
> regards, Kornel
Thanks, Kornel.
Added that and PHP no longer dies. But I still can't get the Prefilter to
change the
Hi,
Please note, if you post a message from an email address that is different
from the one you used to register with the mailing list, then your message
will be ignored.
I guess this is a basic security measure to avoid spam pollution, but it
caught me out and I thought I was pretty Internet-awa
Hi kaaposc,
> first of all, the value returned by "mysqli_query" is a
> resource, not a resultset. You have to use one of "fetch"
> functions to get a resultset.
> fetch function gives you one row at a time, so you could
> create an array of these rows and in phptal template use
> "repeat:" f
On 19-02-2009 at 07:59:53 wrote:
I thought PHP's "implements" only worked with "interface" but the
PHPTAL.php
1_1_15 doesn't use "interface" anywhere, so this is never going to work.
Have I misunderstood or is the manual out of date on this point?
Sorry, manual fails to mention that you
php...@jakeman.plus.com wrote:
Hi,
These two files will output the number of records (2) from a MySQL
database but not the record data. Can anyone suggest what I'm doing wrong?
Thanks, Chris
results = $results;
$template->records = $records;
try {
echo $template->execute();
}
catch (Exce
Hi everyone,
Very impressed by PHPTAL and define-macro and define-slot work well for me.
However now trying to use the Prefilter (as in the manual at
http://phptal.motion-twin.com/manual/en/split/ar06s04.html ). The code
suggested (below) causes my PHP v5 to die.
I thought PHP's "implements" on
Hi,
These two files will output the number of records (2) from a MySQL database
but not the record data. Can anyone suggest what I'm doing wrong?
Thanks, Chris
results = $results;
$template->records = $records;
try {
echo $template->execute();
}
catch (Exception $e){
echo $e;
}
?>
Ar