Thanks for the reply, seems that I mistyped it when I was writing it here, I'm too dependent on IDEs lol, I had it typed correctly in my actual app
But I found a fix to the problem I was having, I just needed to add a couple of extra parameters to the url() function:
PHP Code:
<?=$this->url(array('controller'=>'profile', 'action'=>'view'), null, true)?>