PHP Classes

How to create IF,FOR,WHILE,... function for template parser

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  How to create IF,FOR,WHILE,......  
Subject:How to create IF,FOR,WHILE,......
Summary:How to create IF,FOR,WHILE,... function for template parser
Messages:3
Author:readlf
Date:2010-06-23 21:08:57
Update:2010-06-24 10:29:35
 

  1. How to create IF,FOR,WHILE,......   Reply   Report abuse  
Picture of readlf readlf - 2010-06-23 21:49:00
Hi all!

I've problem. I'm creating my own Template Parser Class and I don't now how to create IF or any cycle function. Example:

...
<html>
...
{IF logged_in == true}
Hello {$USER}, ...
[ELSE]
Please log in or register, ...
{ENDIF}
...
</html>

I hope you understand...

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.