I am looking at namespacing and i see things like:
namespace app\controllers\Controller; or new app\models\MySuperModel(); or return \yii\helpers\Json::encode($items);
Why are you using lowercase namespaces while the class itself is camel case?
Wouldn't the below look better:
namespace App\Controllers\Controller; or new App\Models\MySuperModel(); or return \Yii\Helpers\Json::encode($items);
All the other big frameworks use a consistent convention, but this one in yii2 is very weird, what is the rationale behind it? Is there a chance to be consistnt with this?
Also, i haven't moved to yii2 because 1.1.x suffice my needs now and also i have multiple projects already in that version, but yesterday i took a look at the github code, and what struck me as a bit odd was the usage of array_key_exists() function. It is used in so many places when a simple isset($array[$key]) would suffice.
Why is that? Is like you are trying to make the framework eat more memory.
Please note that i am just trying to understand things, i don't want to make anybody feel bad, it's just i don't understand and if i am going to switch to yii2 i need to know what's under my code and why.