Hello,
I use cakephp 2.3.4
When I use paginator->sort on a field of model default I have no problem.
But if I want to sort on a field associated, sorting is the default.
I use the code: $this->Paginator->sort(Model.NOM','HeaderName')
when I look at $ this-> params is what I get, you can see it at the attach 
file
Thank for your help

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


        params => array(
                'plugin' => null,
                'controller' => 'defaultModels',
                'action' => 'index',
                'named' => array(
                        'sort' => 'newModel.NOM',
                        'direction' => 'asc'
                ),
                'pass' => array(),
                'isAjax' => false,
                'paging' => array(
                        'defaultModel' => array(
                                'page' => (int) 1,
                                'current' => (int) 15,
                                'count' => (int) 40,
                                'prevPage' => false,
                                'nextPage' => true,
                                'pageCount' => (int) 3,
                                'order' => array(
                                        'defaultModel.NOM' => 'asc'
                                ),
                                'limit' => (int) 15,
                                'options' => array(
                                        'order' => array(
                                                'defaultModel.NOM' => 'asc'
                                        ),
                                        'sort' => 'newModel.NOM',
                                        'direction' => 'asc'
                                ),
                                'paramType' => 'named'
                        )
                ),
                'models' => array(
                        'defaultModel' => array(
                                'plugin' => null,
                                'className' => 'defaultModel'
                        ),
                        'newModel' => array(
                                'plugin' => null,
                                'className' => 'newModel'
                        )
                )
        )


Reply via email to