I'm having a similar problem with paginator too.

In view, I've :

echo $paginator->prev('< Prev', array('url' => array('name' => $SearchFor)),
null, array('class'=>'disabled'));

I expect it to link to /admin/artists/page:1/name:"SEARCHSTRING"


but instead of this, it links to:

/admin/artists/admin_index/page:1/name:"SEARCHSTRING"


So, it's writing full action name (with and without prefix).


Strange, uh?

A Cake issue? Of course I'm working in admin section.






On Thu, May 15, 2008 at 3:26 PM, b logica <[EMAIL PROTECTED]> wrote:

>
> I'm having some difficulty figuring out how to make pagination links
> use the path I need. I have a model, Members, for which the index
> lists all members and requires pagination. However, the client insists
> on putting this in a directory named "membership",  the index page of
> which is actually other content. What would normally be static content
> is actually being served from the DB by a Content controller. So,
> /membership/ shows that content and I thought I would create a route:
>
> Router::connect('/membership/members', array('controller' =>
> 'members', 'action' => 'index'));
>
> and have the index method list the members. This works fine but the
> paginator creates links without the "/membership" part of the path. I
> tried:
>
> var $paginate = array(
>        'url' => array('/membership/members'),
> ...
>
> and:
>
> var $paginate = array(
>        'url' => array('/membership/members', array('controller' =>
> 'members', 'action' => 'index')),
> ...
>
> without any luck. Is there no way to get paginator to do this? If not,
> what's the use case for the 'url' param, then?
>
> >
>


-- 
Nicolás Andrade
www.nicoandra.com.ar
www.treintaguita.com.ar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to