Data Access And Entity Classes inside MVC

Sorry for this question seems naive. I am new to MVC model (I know I am a bit late to join the club), and I have a question regarding MVC with PHP. I think the implementation language doesn’t really matter but I intended to specify it in order to make it clear that I use web applications.

I am planning to use Entity classes (like Car, User, etc..) but these are more like Business logic classes. So I need to use persistence data layer such as Data Access classes (Car DAL that includes actual SQL statements).

Now I am not sure how and where these classes will fit in MVC. I think they are part of the model, but I don’t know how this will be done.

I am thinking of using AngularJS with PHP and MySql. Trying to create my first truly MVC project, but not sure how all will fit together. Please feel free to ignore the implementation specifics if you feel they don’t belong to the question.


Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *