TL; DR: How do I create a URL in a controller, similar to how I can use HtmlHelper to create URLs in a view?
Problem:
I want to print the controller action url in my controller (because I create my JSON string in my controller, not in the view)
In View I can use $this->Html->url() , but what about the controller?
Should I use a specific constant like APP_DIR + controller name + controller action?)
mrdaliri
source share