Yii2 With Namespaces And Yii2 Without Namespaces
Posted 20 July 2013 - 06:05 AM
1) It is difficult to understand in some circumstances
2) It is more slowly performance
3) There is no namespaces in older versions of PHP
I am not using namespaces on my small projects because it is difficult. It is my own opinion only.
Posted 20 July 2013 - 06:55 AM
There is nothing difficult about it. It is similar to aliases in Yii1.1
It is a core concept of PHP now and as PHP developer you should learn how it works.
What makes you think that? As it is used for autoloading, one could argue that by not using php include path anymore it gets faster rather than slower.
This is why minimum requirement is PHP 5.3 which also has reached end of life already and only gets security fixes.
You really should upgrade to a higher version if you are still using PHP < 5.3. Don't fear learning new things!
Posted 22 July 2013 - 08:08 AM