vlibTemplate

vLib Logo

4. Introduction and tutorial

What have we learned so far? You can use different brackets for all vLIB markup tags. Template and PHP script are saved in two different files:

The template contains HTML and vLIB markup tags. The PHP script is using methods like setvar() and setloop() to merge the template with the data.

It is necessary that you understand object-oriented programming (OOP) and can understand the meaning of

and the concept of object-oriented programming. It is not really necessary to be a master in OOP, but it helps.



4.1. Simple example with two variables
4.2. TMPL_IF
4.3. Simple LOOP
4.4. Modular programming with TMPL_INCLUDE