Add/remove Cake named URL parameter for a link

Posted by sibidiba on Stack Overflow See other posts from Stack Overflow or by sibidiba
Published on 2010-05-07T15:56:06Z Indexed on 2010/05/07 15:58 UTC
Read the original article Hit count: 837

Using CakePHP 1.3 there are named parameters in the URL like .../name:value/... These are used for example by pagination links .../page:2/key:date/sort:desc/...

How to generate links with HtmlHelper::link() adding/deleting such named parameters from the current URL?

Basically I want create links to add/remove/modify the category:ID named parameter in the current URL. It must not touch the URL, anchor, other named parameters, GET parameters in the URL.

Or how can I pass named parameters to HtmlHelper::link()?

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php