Topic: need some advice on approach to something please :) (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
posted 01-26-2009 20:45
I have a potential customer that I am going to be redoing his site (it needs it real bad). |
Maniac (V) Mad Scientist From: Denver, CO, USA |
posted 01-26-2009 22:29
I've always found the best way to skin a site for various clients using the same codebase is to separate the URLs as well. QUerystrings can be screwed up by the client and should never be mission critical. I'd go with <client_name>.<url>.com to segregate it more. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-27-2009 09:40
So, my advice would be to use sub domains, a templating engine, and get php to load the appropriate templates based on the sub domain. |
Maniac (V) Inmate From: there...no..there..... |
posted 01-27-2009 14:33
Thanks. Sub domains it is. quote:
|
Maniac (V) Inmate From: there...no..there..... |
posted 01-27-2009 14:44
OK...I think I got what you mean. Something like Smarty Templates? |
Maniac (V) Mad Scientist From: Denver, CO, USA |
posted 01-27-2009 15:22
Smarty is just great. It has my support. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-27-2009 16:05
quote:
|
Maniac (V) Inmate From: there...no..there..... |
posted 01-27-2009 17:49
Great! Thanks a bunch both of you for your help. |
Lunatic (VI) Inmate From: under the bed |
posted 01-27-2009 18:22
On a side note, I just started using Smarty for an internal project here at work. |
Maniac (V) Inmate From: there...no..there..... |
posted 02-08-2009 20:54
OK. I have been working with Smarty for a couple of days and reading the documentation and such. I ran into a snag and I am having a hard time getting my head around this. code: directory1 page1 page2 page3 directory2 page1 page2 page3
code: $smarty->assign('Sectionfile','page1.html');
code: {include file="../directory1/$Sectionfile"}
|
Maniac (V) Inmate From: there...no..there..... |
posted 02-09-2009 00:00
you know what....I sound like a freakin idiot. I got it now. |