If your goal is to have user-friendly URLs in your application, use the following approach:
1) Create a routing rule for your module / action in the routing.yml file of the application. The following example is a routing rule for an action that shows the most recent issues in the application, by default on page 1 (using a pager):
recent_questions:
url: questions/recent/:page
param: { module: questions, action: recent, page: 1 }
2) , url_for() URL-.
<a href="<?php echo url_for('questions/recent?page=1') ?>">Recent Questions</a>
URL: http://myapp/questions/recent/1.html.
3) URL- () , , ( :/page URL-) .
link_to() URL- HTML <a>.