Resolved:
In the new controller, I added these line to the index function:

function admin_index() {
        $this->paginate = array('limit' => 20);
        if(!isset($this->params['pass']['sort'])) $this->paginate['options']
['sort'] = 'created';
        else $this->paginate['options']['sort'] = $this->params['pass']
['sort'];
        if(isset($this->params['pass']['direction'])) $this-
>paginate['options']['direction'] = $this->params['pass']
['direction'];

        $this->paginate['options']['controller']='sections';
        $this->paginate['options']['action']='view';
        $this->paginate['options'][]=$this->params['pass']['section'];
}


On Aug 24, 6:12 am, phpjoy <[EMAIL PROTECTED]> wrote:
> I have a URL calling a controller, and that controller is calling
> ANOTHER controller by requestAction.
>
> This is the URL I 
> have:http://localhost/admin/sections/view/175/page:1/sort:file/direction:asc
>
> I send the parameters to the new controller, and everything but the
> direction works fine.
>
> When I click on the paginated link, it keeps putting "ASC" for the
> options and not "DESC".
>
> If I change the URL to desc *manually*, it works.
> URL:http://localhost/admin/sections/view/175/page:1/sort:file/direction:desc
>
> However, if it queries the DB for ASC, I'll still get 'ASC' on the
> options [which isn't what's desired].
>
> Any ideas?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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