S
Saka
Guest
i know the idea of MVC. please check whether it is right or wong
M- for data that is all code related with database(insertion,deletion,update,retrieve) should remain in MODEL.php file or MODEL class
V- view that is all user interface related function remains in one VIEW class or VIEW.php file
C-control that is all business related functions like accounting(if related with business)should remain in CONTROL.php or CONTROL class
am i correct so far if not please feel free to give correction.
now my problem knowing this all i am confused coding with MVC framework as i think whether my idea is correct or not.
please provide me a complete example of MVC (code of MVC). so it would be helpful for me.
M- for data that is all code related with database(insertion,deletion,update,retrieve) should remain in MODEL.php file or MODEL class
V- view that is all user interface related function remains in one VIEW class or VIEW.php file
C-control that is all business related functions like accounting(if related with business)should remain in CONTROL.php or CONTROL class
am i correct so far if not please feel free to give correction.
now my problem knowing this all i am confused coding with MVC framework as i think whether my idea is correct or not.
please provide me a complete example of MVC (code of MVC). so it would be helpful for me.