CodeIgniter Forums

Full Version: How to use namespace with CI?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hello everybody,

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

Best regards.

El Forum

[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.

El Forum

I patched codeigniter to work with namespaces in controllers.