I know i am late to this party and yii2 is where it is right now, but there’s some things that i can’t just help to say something about.
I am looking at namespacing and i see things like:
Why are you using lowercase namespaces while the class itself is camel case?
Wouldn’t the below look better:
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.
We had that discussion before and came to the conclusion that lower case for namespaces is just like we use lower case for directories. You see what part is the namespace and what part is the class. Did not find the forum topic about it, you may search yourself.
can you give an example? We normally use array_key_exists, when the array item may be null because isset would fail in this case.
For #1, okay i see the point but is that decision final?
Why not rename the dirs to start uppercased, zend does it, symfony does it too, so i don’t think is wrong at all, and this would be even better when we will mix Yii with zend or symfony components, it just makes sense to be so.
For #1: No, we will not change it. There is no reason to try being equal to others. We already adopted PSR standards, thats enough imo. If we would take everything from other frameworks, why do you need Yii then?