Jump to content


Templating in PHP


  • Please log in to reply
4 replies to this topic

#1 Guest_LALING_*

Guest_LALING_*
  • Guests

Posted 16 May 2006 - 06:45 PM

I was wondering how do I go about on creating a template engine. Something like the XMB forum board templates (I really like how the templates are handled on the XMB forum board script). Something that will store the template in a database table and called out with the eval(). Please do not recommend smarty. For some reason, I'm not gonna go with smarty.

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 17 May 2006 - 08:46 AM

Is XMB open source, or do you have the source? If so, why not take a look at it and see how they have done it for some ideas...

#3 Guest_LALING_*

Guest_LALING_*
  • Guests

Posted 17 May 2006 - 03:18 PM

[!--quoteo(post=374602:date=May 17 2006, 01:46 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 17 2006, 01:46 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Is XMB open source, or do you have the source? If so, why not take a look at it and see how they have done it for some ideas...
[/quote]

i HAVE looked at it. but i'm fairly new to PHP and dont really understand the class and functions. people say its easy, but still, i havent found a goo tut to explain it well and more understanding.

#4 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 17 May 2006 - 03:25 PM

[!--quoteo(post=374686:date=May 17 2006, 11:18 AM:name=LALING)--][div class=\'quotetop\']QUOTE(LALING @ May 17 2006, 11:18 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
i HAVE looked at it. but i'm fairly new to PHP and dont really understand the class and functions. people say its easy, but still, i havent found a goo tut to explain it well and more understanding.
[/quote]

not to be harsh, but if you're new to PHP, why aren't you willing to try smarty? it's one of the better and more flexible templating systems out there, plus, it's free so you can customize it to whatever you want. i'm sure there are other good ones, too, but i guess i'm just curious to why you're not going to try something that tested and tried.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#5 Guest_LALING_*

Guest_LALING_*
  • Guests

Posted 17 May 2006 - 03:27 PM

[!--quoteo(post=374688:date=May 17 2006, 08:25 AM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ May 17 2006, 08:25 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
not to be harsh, but if you're new to PHP, why aren't you willing to try smarty? it's one of the better and more flexible templating systems out there, plus, it's free so you can customize it to whatever you want. i'm sure there are other good ones, too, but i guess i'm just curious to why you're not going to try something that tested and tried.
[/quote]


i did try smarty. i just didn't like it for some reason.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users