I want an custom link for my paginator. I use the folowing code
$this->Paginator->options(array(
'url'=>array(
"/custom",24,"custom1"
),
'escape'=>false
)
);
This results in a link with the original controller in front of the link like this:
/controller/action/%2Fcustom/24/custom1
I want the linkt to be /custom/24/custom1. So without the escaped(/) and as a root.
How can I accomplish this?
Did you try
? The syntax that you use is not valid I think. The available formats are:
or
or
See http://book.cakephp.org/1.3/en/view/1387/options-url and http://book.cakephp.org/1.3/view/1448/url.
If none of these formats satisfies you, you can consider creating a custom route, see http://book.cakephp.org/1.3/view/948/Defining-Routes.
Cheers