templates limitations...!?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Baader
Forum Newbie
Posts: 1
Joined: Thu Jan 22, 2004 7:40 am
Contact:

templates limitations...!?

Post by Baader »

hi there...
my question about templates classes.

i have to get follow:
smth1
-bla1
-bla2
..
-bla3
smth2
-cla1
..
smth3
-dla1
..

all this i wanna realizeted trough the tpl's...
but can't find the way in those classes which i have (phpBB's tpl system) :7
plz help...
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

In php, create a script which defines a bunch of (unformatted) vars.

In your html editor, create the templates. Add <?php echo $var; ?> wherever you need to.

Back in php, include the html template/s once the vars have been defined.
Post Reply