Forum Moderators: coopster

Message Too Old, No Replies

Hello world i need a good template system, can somebody advice me?

         

orion_rus

12:26 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Hello again, let's i describe what i need:
I need send to system template html, let it would be like this:
<html>
<head>
<title>{container1}</title>
{container2}
</head>
<body>
<table>
<tr><td>{container3}</td><td>{container4}</td></tr>
</table>
</body>
</html>

and then i want to insert something to a contaniner i send
$system->insert('container');
some output functions
$system->closeinsert();
or something like this. I hope i was clear.
May be somebody can advice me?
Thank you very much for help

SeanW

1:50 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



The best one I've found so far is Smarty (check sourceforge).

Sean

tata668

4:09 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



All template engins will allow you to do that.

Simply do something like:

ob_start() ;
// some output functions
$content = ob_get_contents() ;
ob_end_clean() ;
$system->insert($content);

Is this what you want?

jusdrum

5:32 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



I second Smarty, it's quite powerful and easy to learn.

[smarty.php.net...]