I need help setting and argument between me and me team members We are arguing about the function and purpose of each component of the Yii Framworks specially the "model" and "controller",and where to handle database access and query execution in the model or the controller?.
As i know from the basic mvc framework the model is the database access layer and the controller is the bridge between the model and the view, but in Yii Framework the controllers is where the data is accessed and the query are executed.
So which is the best way to deal with such issue? and way?, also what are the pros ans cons of each approach?.
thanx in advance for you all.