Sometimes you need to use url() in the controller.
It’s possible to use Html Helper in this case, but for url() only, you can use:
Wll, not a rocket science indeed, but let’s hope this help someone.
Sometimes you need to use url() in the controller.
It’s possible to use Html Helper in this case, but for url() only, you can use:
Wll, not a rocket science indeed, but let’s hope this help someone.
Great! I used to load the HtmlHelper into the controller, but this is much better. Thank you!
Simple and elegant, especially since helpers are meant for views …