Namespace in PHP CodeIgniter Framework
Namespace are supported by php and not by the framework (codeigniter in your case). If you use namespaces php version must be >= 5.3.0
Codeigniter dosen`t use namespaces because it is written to support php 4.
PHP namespace error
What you want to set up is what is called auto loading. If you name your files correctly it will properly load them as needed.
There's a standard for it called PSR-0, which you can read about about at https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
You also have a sample implementation there.
Related Topics
Ini_Set("Memory_Limit") in PHP 5.3.3 Is Not Working at All
Why Is Constructing Pdo Connection Slow
How to Prepare Statement for Update Query
Split String into Sentences Using Regex
PHP Unexpected Result of Float to Int Type Cast
Remove Accents Without Using Iconv
How to Replace a Function in PHP (Such as Mail) and Make It Do Something Else
Mcrypt Rijndael-128 to Openssl Aes-128-Ecb Conversion
PHP Simplexml Check If a Child Exists
Header Location Not Working in My PHP Code
How to Correct This Illegal String Offset
Skip First Line of Fgetcsv Method
How to Split a String in PHP at the Nth Occurrence of a Needle
How to Call the Constructor with Call_User_Func_Array in PHP