Answer the question
In order to leave comments, you need to log in
How to correctly form the URL in the controller?
Good afternoon!
It is necessary to make a substitution of the url in the controller, I do it like this and everything works, but in my opinion, the crutch is still the same, how to do it beautifully and correctly?$event->url = ['view?id='.$appointment->id];
Answer the question
In order to leave comments, you need to log in
Good morning.
I would use helpers\Url;
More details with lots of examples
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question