Views provide the UI/UX. Their responsibility is to take requests from the user to send to the associated controller, and display the response results of that request.
PHP code should be put into views only when necessary, as excessive amounts of PHP code mixed with HTML and JS add more cognitive load to the developer trying to work on the code.
Tasks