Skip to content

Tag: php

Custom ViewModel is not found

Whenever I try to use my own custom ViewModel the module stops working. Error: main.CRITICAL: Class LithContactsViewModelAdditionalInfo does not exist [] [] The file structure is simple: Inside the viewfrontendlayout I created a file contact_index_index.xml Where I defined a new block inside a referenceContai…

php mvc url pattern which takes three arguments

I’m new to MVC. what I’ve learned from a few articles and some videos is that the general form of URL in MVC structure is as controller/action. but I’ve come across some URLs like this: www.exmaple.com/users/login/confirm which takes three parameters(users, login, confirm). I don’t und…