vLIB
Welcome, Guest. Please login or register.
Did you miss your activation email?
Fri, 21. December 2007 - 09:12:26

Login with username, password and session length
Search:     Advanced search
Please register with your real name and do not post any SPAM! Violations: "Hk." and "Getagrip" => deleted
1.459 Posts in 346 Topics by 21 Members
Latest Member: Tim81
* Home Help Search Login Register
+  vLIB
|-+  English support
| |-+  vlibTemplate, vlibMimeMail, vlibDate
| | |-+  parse two times ?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: parse two times ?  (Read 443 times)
Schneemann
Guest
on: Fri, 06. June 2003 - 16:53:06

Hello,

I'd like to know if it's possible to parse a html-file more than one time.

My problem looks like this:
1.) i load the content of my page out of db  into a 'variale 'in the php-file
2.) then i parse the html-file and place the content of 'variable' there (<TMPL_VAR name='variable'>).

But sometimes the content of 'variable' also have <TMPL>-Tags in it which should be parsed...the html-file has therefore to be parsed two times...so how can i achieve this ?

(
<?
..new template..
...parse...
and again
...new tamplate..
..parse
>?
doesn't seem to work!).

Greetings,
Schneemann
Logged
ClausVB
Administrator
Hero Member
*****
Offline Offline

Posts: 496



WWW
Reply #1 on: Sat, 07. June 2003 - 15:58:24

I hope I understood you right: You your template in a your DB ...

Something like

Code:
html ... tmpl_var name='var_name' ... /html


I do not think you can parse it into another template and exept the vars to work.

Possible solution: Write a short script, which extracts all templates from the DB and creates files. If you change something "re-cache" :-).

Then it should work.

Until know vlibTemplate does not store it's templates in a DB. Please read: Templates from DB
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!