Page 1 of 1

Re: XML for nav

Posted: Mon May 03, 2010 3:20 pm
by rnoack
You just have to parse the file...

if you wrote some code and its not working post it here and someone will try to help, but I don't think anyone wants to write the entire page for you.

Re: XML for nav

Posted: Mon May 03, 2010 3:22 pm
by requinix
Once you have a PHP script handling those URLs (like with a RewriteRule), you can look at $_SERVER["REQUEST_URI"] to get the path. So now you have /home/la.

With SimpleXML you can load the XML and check for a ->home->la node. If it's there then you grab the title, otherwise you don't.

Re: XML for nav

Posted: Tue May 04, 2010 9:52 am
by rnoack
what is the error? i never really used xml with php so not sure if i can help