Author Topic: PHP namespaces  (Read 1748 times)

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
PHP namespaces
« on: March 20, 2012, 10:18:20 AM »
Any of you guys used them yet?  Working on a MVC project and I think it might be a good way to separate out the bases classes from the module classes.  And further separate the models, controllers, and views.  Looking at it, it seems like the structure of the name space would nicely map to the file system making auto loading a lot easier.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: PHP namespaces
« Reply #1 on: March 20, 2012, 10:44:25 AM »
I use ActiveRecord (www.phpactiverecord.org) and that uses namespaces.  But outside of that, I haven't attempted to use it on my own.