CodeIgniter Forums
How to use namespace with CI? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to use namespace with CI? (/showthread.php?tid=43975)



How to use namespace with CI? - El Forum - 07-29-2011

[eluser]Unknown[/eluser]
Hello everybody,

How to use PHP5 namespace in CI?
If, CI not support namespace, when u support?

Best regards.


How to use namespace with CI? - El Forum - 08-01-2011

[eluser]Josh Holloway[/eluser]
Codeigniter doesn't use namespaces and, as far as I'm aware, there's not any plans to add namespaces yet.

The main structure of the framework doesn't support namespaces without a major re-write (As far as I can see from the way the framework is structured). However, that said, it is an open source, community driven framework so, if you want to incorporate namespaces fork it on github or bitbucket and give it a go.


How to use namespace with CI? - El Forum - 03-07-2012

[eluser]porquero[/eluser]
I patched codeigniter to work with namespaces in controllers.
see http://ellislab.com/forums/viewthread/212661/