I have a question regarding a custom mvc framework. I am a little confused with how I should implement the models portion. I am thinking since doctrine entities will be my models, then I could create another folder named models in my file structure and within this model folder I will have individual files that will perform the crud functionality. The reason I am trying to do my own framework is that I plan to use dojo mvc on the front-end.
for instance my models folder would look like:
models --> users logger blog
and inside say users class some code my look like:
class Users{
public function getUsers(){
$users = $this->em->getRepository('entities\Users')->findAll();
echo // the data from
}
// also there will be setUsers, etc...
}
Thanks everyone