I canβt figure it out. How do you use custom URL helper?
I have a method in my users controller called edit , and I have my own route for it, so it can be called via domain.com/settings (instead of domain.com/users/edit)
When I use the URL helper this way:
<li><a href="<?php echo $this->url(array('controller' => '', 'action' => 'settings')); ?>">Settings</a></li>
it works fine on the main page, but as soon as I am on the settings page, every other link generated by the sub-URL refers to the current url (domain.com/settings)
Any ideas how to fix this?
source share