title: How to customize CakePHP pagination url?
body: <p>currently i am using cakephp version 2.5.3</p>
  
  <p>I want to change my cakephp pagination url.</p>
  
  <p>My current URL is <code>http://www.example.com/newsFeeds/ajax_news_feed/page:2</code> I need <code>http://www.example.com/newsFeeds/index/page:2</code></p>
  
  <p>My Code:</p>
  
  <pre><code>&lt;?php
      echo $this-&gt;Paginator-&gt;prev(' &lt;&lt;' . __('Previous  '), array(), null, array('class' =&gt; 'prev disabled'));
      echo $this-&gt;Paginator-&gt;numbers();
      //echo $this-&gt;Paginator-&gt;url(array('controller'=&gt;'newsFeeds', 'action'=&gt;'index'));
      //echo $this-&gt;Paginator-&gt;link('Sort by title on page 5', array('controller'=&gt;'newsFeeds', 'action'=&gt;'index'));
      echo $this-&gt;Paginator-&gt;next(__('  Next') . '&gt;&gt; ', array(), null, array('class' =&gt; 'next disabled'));
  ?&gt;
  </code></pre>
  
  <p>Above pagination is showing-</p>
  
  <p><img src="https://i.stack.imgur.com/awOJP.png" alt="tt"></p>
  
  <p>When i am clicking <code>2</code> then the link is going to <code>http://www.example.com/newsFeeds/ajax_news_feed/my_post/page:2</code> but i need <code>http://www.example.com/newsFeeds/index/my_post/page:2</code></p>
  
  <p>Please tell me how to change controller and action in pagination?</p>