Welcome Guest, Not a member yet? Register   Sign In
Creating 2 classes with same names in different namespaces
#1

[eluser]varun[/eluser]
Hi

Is it possible in PHP to create 2 or more classes with same name in different namespaces. If yes then will be great a small example.

Thanks in advance for any type of help reply.
#2

[eluser]tomcode[/eluser]
Namespaces have been introduced only recently in PHP 5.3.0, see PHP manual. I'd not use them for the moment, too early, unless You control the server installation.

CI does not use them.
#3

[eluser]Adam Griffiths[/eluser]
Yes. That is the whole point of having namespaces.
#4

[eluser]porquero[/eluser]
I can to work with namespaces in controllers.
You can see more information here:
http://ellislab.com/forums/viewthread/212661/




Theme © iAndrew 2016 - Forum software by © MyBB