11-16-2007, 01:30 PM
|
#15 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
Namespaces will be a life saver when you realise that so many global functions is a really bad idea. URL rewriting will always remain with Apache as that's not a PHP task at all - even Ruby on Rails uses Apache's mod-rewrite, so I think you're well out of luck on that one. Namespaces are useful as it gets rid of those prefixed functions you see dotted around the place - simplexml_* to name one. You would just do something like:
php Code:
use SimpleXML as SXML; $pXML = new SXML:: SimpleXML; echo $pXML-> load_file();
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|