I am trying to achieve the link as cake_proj/prefix2/controller2/action on this page who's link is - cake-proj/ but 'prefix1' => true in my routes.php as this is the home page, so ultimately its link is cake_proj/prefix1/controller1/action. So now I am trying to achieve cake_proj/prefix2/controller2/action with the help of Html helper's link method-
<?php
echo $this->Html->link(
'<i class="glyphicon glyphicon-group"></i> Test Link', array(
'prefix' => 'prefix2',
'controller' => 'controller2',
'action' => 'prefix_action'), array(
'escape' => FALSE)
);
?>
But with this I am getting the link as cake_proj/prefix1/controller2/prefix_action notice here it doesn't change the prefix. I don't want to loose the CakePHP's routing capability, but still want to get over this problem. I referred some of the previously answered questions but not worked for me. Please help.