Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Skin Template Handling
Old 06-21-2006, 11:18 AM Skin Template Handling
someotherguy582's Avatar
Average Talker

Posts: 21
Trades: 0
Hey guys! Wow I haven't been here in a long time.

Anyways, I need help deciding the best way to handle templates in PHP with MySQL. It is for a fairly large script / program I am making. I want to be able to add / edit / delete templetes from an ACP interface. I also want to be able to export and import templates (for skin sets). Very similar to IPB (you can add, edit, remove, import skin, export skin, etc), for those of you who have used it.

So how should I store the templates? I don't want it to be a big mess just to make a script that will export everything, etc. Should I store the templates in a MySQL database? Will that be too slow to load them on each load? Should I store them flat-file, if so, how?

Any advice / help is greatly appreciated.

Thanks so much!
__________________
someotherguy582 [
Please login or register to view this content. Registration is FREE
]
IFTomatoes Developer

Last edited by someotherguy582; 06-21-2006 at 12:41 PM..
someotherguy582 is offline
Reply With Quote
View Public Profile Visit someotherguy582's homepage!
 
 
Register now for full access!
Old 06-21-2006, 03:34 PM Re: Skin Template Handling
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
It doesn't really matter how you store them. MySQL and flat-file will be almost equally fast (you won't see any difference as long as the MySQL database is on the same server or in the same server-network), it's parsing the template that takes time. I'd use Smarty to solve that problem (it parses the template only when it's changed, it uses a previously compild file otherwise.)

I use smarty for all my sites too, and it's excellent. It has some limitations, but it's very easy to extend with own plugins, so that's not a problem. It uses flatfiles by default, but it's possible to used templates stored in a MySQL database instead.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Reply     « Reply to Skin Template Handling
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20451 seconds with 12 queries