I did started to use Yii Framework, and it is better that last framework that I used. I have only one thing that gets to me. When I get something with AR, he will return to me object and I want array/object with only attributes (in object there are many things that I don’t need in templates). If I select one item from database with AR, case is simple:
AR is programming pattern that works with objects (it is object-based). There is no way to "work with AR but without objects", and frankly I do not see any reason to work without objects in templates.
if you want to work with arrays - you must use standard DAO functions.
Maybe I did not write it clearly. I want array or object but already with attributes. What AR is returning now it makes lines in templates too long in my opinion.
@ORey - I think he is not aware that he can access the attributes directly with $modelName->attributeName and because of that he loops through the $modelName->attributes array and gets the key/value from the array.