Topic: need some advice on approach to something please :) (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
![]() 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 |
![]() 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 |
![]() 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..... |
![]() Thanks. Sub domains it is. quote:
|
Maniac (V) Inmate From: there...no..there..... |
![]() OK...I think I got what you mean. Something like Smarty Templates? |
Maniac (V) Mad Scientist From: Denver, CO, USA |
![]() Smarty is just great. It has my support. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() quote:
|
Maniac (V) Inmate From: there...no..there..... |
![]() Great! Thanks a bunch both of you for your help. |
Lunatic (VI) Inmate From: under the bed |
![]() On a side note, I just started using Smarty for an internal project here at work. |
Maniac (V) Inmate From: there...no..there..... |
![]() 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..... |
![]() you know what....I sound like a freakin idiot. I got it now. |