Excellent, thanks for your help guys, you've been really helpful :)



On 3 Mar 2009, at 10:20, Marcus Gnaß wrote:

Matthew Croud wrote:
Hello,

First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a static navigation system.

So far, using the require_once(); function seems to fit the bill in order to bring in the same header html file on each page.
I've also looked at Smartys template system.

I wondered how you folk would go about creating a template system ?
Smarty is a good choice, although some people might prefer other templating systems. This is kind of a religious question like with programming questions in general. But I guess that most people would advise you to use an existing templating system instead of writing one on your own.
My second question might be me jumping the gun here, I haven't come across this part in my book but i'll ask about it anyway. I often see websites that have a dynamic body and static header, and their web addresses end like this: "index.php?id=445" where 445 i presume is some file reference. What is this called ? It seems like the system i'm after but it doesn't appear in my book, If anyone could let me know what this page id subject is called i can do some research on the subject.
Have a look at the PHP manual and be sure to bookmark it! ;) 
http://www.php.net/manual/en/

The ID you mentioned is a query. "id=445&other_id=653" would be a querystring. To retrieve data passed via this querystring you can use $_GET (http://de.php.net/manual/en/reserved.variables.get.php ).


Have fun





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to