+ 1

PHP in MVC

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

31st Mar 2020, 5:51 AM
Peace Imion
Peace Imion - avatar
1 Antwort
+ 6
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.
31st Mar 2020, 7:48 AM
A͢J
A͢J - avatar