PHP in MVC | Sololearn: Learn to code for FREE!



I'm writing a method to check if user is login in( islogin() ) but I'm confused if it should be in the model or controller

3/31/2020 5:51:20 AM

King Esteem 🇳🇬

1 Answer

New Answer


If you know MVC well then you should not be confused. Controller is just use to send request and get response. So you need to write in model.