In CakePHP, how to leave all prefixes?
        Posted  
        
            by 
                Victor Piousbox
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Victor Piousbox
        
        
        
        Published on 2011-03-14T00:02:47Z
        Indexed on 
            2011/03/14
            0:10 UTC
        
        
        Read the original article
        Hit count: 270
        
I have a link that goes like this:
$this->Html->link('Welcome', array('controller' => 'users', 'action' => 'add'));
I suspect it doesn't work (Firefox says the redirect will never complete), so I did this:
$this->Html->link('Welcome', array('controller' => 'users', 'action' => 'add', 'my'=>false));
'my' is a prefix. I also have 'admin', 'ajax', and 'rss'. So now instead of pointing to /users/add or /my/users/add, the link points to /rss/users/add. The link is in a header, in a layout so I don't know which prefix it will be invoked from. I want to go to /users/add, that is, leave all prefixes altogether. How do I do that in CakePHP? I'm using 1.3 version.
© Stack Overflow or respective owner