Author Topic: [getParseTime] Strange behaviour  (Read 1546 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
[getParseTime] Strange behaviour
on: Tue, 21. October 2003 - 11:16:57
Look at the following script:

http://lamp.clausvb.de/examples/sister_sourcecode.php

echo $parse_time;

works

$tmpl->setVar('parse_time', $parse_time);

does not.

In fact even

$tmpl->setVar('parse_time', 'hello');

does not work.

Strange, strange ....

releasedj

  • Guest
[getParseTime] Strange behaviour
Reply #1 on: Tue, 21. October 2003 - 14:12:40
Take a look at the documentatoin here:
/docs/multihtml/...ec_options.html

If you set GLOBAL_CONTEXT_VARS and TIME_PARSE to 1 in your vlibIni.php file then a variable should be created for you called __PARSE_TIME__, which you can access using:

Code: [Select]

TMPL_VAR name=__PARSE_TIME__ /



This should work as desired and there's no need to reparse the template.

Regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
[getParseTime] Strange behaviour
Reply #2 on: Tue, 21. October 2003 - 14:26:56
Thanks Kelvin.

Sorry, I didn't try the docs.

Regards,
Claus