Also, indentation is not clear to me, I still not getting it, I like to have a visual cascade for readability, I have it on plain html, for some reason I am not getting it in php. Not even are you in the demo application.
Let’s say we have a clearly separated layout like this
Well for me, indentation ,or even the overall generated HTML is the least of my concern. I’m looking into the HTML source code once in a while to check what happened in my layout, and I must agree with you that some of the codes generated there, especially the codes generated by Yii’s functions and classes, are not indented properly. But I also have to agree with Antonio Ramirez : not everything will be given to us – or actually, should be given to us – by Yii (or by anyone in that matter, right?). I see framework-developer relation like this: framework will generate the codes, developer will validate the generated codes and edit it to taste. Yii already generated the codes, just edit it.
Maybe you have already used a framework that generates codes just the way you want it, and just comparing it to Yii, perhaps?
I am not a professional Yii user,I am a beginner. And one of the many things I like about Yii is that it does not babysit beginners. Makes me feel I’m intelligent.
I have to toss in my vote that the final indentation doesn’t matter. Now, if it were to spit out the entire page on one line or something, that would be a problem. But as it stands, generally no one should be looking at the page source to begin with except maybe to track a bug real quick. And if you’re using Chrome to do so, it does all the indentation its self, rendering it a moot point.
I actually don’t care how the page source is rendered, as long as it will behave like what is expected from it when opened from browsers.