Answer the question
In order to leave comments, you need to log in
How to split URL into controller and actions?
There are three types of pages on the site: "page", "product catalog", "product" (templates).
Therefore, there are three controllers: PageController, CatalogController, ProductController.
When it hits the /about/ page, the PageController fires.
But how and where can I pass the about variable itself? It's stupid to make an action for it, as there are quite a few pages. Action there index is used.
The question about /catalog/auto/, /product/bmw/ is similar.
Question in general, what does about, auto, bmw mean for mvc?
Answer the question
In order to leave comments, you need to log in
Yes, it doesn't make any difference. It all depends on how you process the request.
It all depends on the specific situation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question