Hello,

I just starting baking with CakePHP and I'm slowly grasping the basics.

So far I've created a view to display all the data in table format from a 
table in the database with pagination.
There is a column in the table that contains browser information (Firefox, 
Chrome, Safari...etc).
So on the view I made some checkboxes using Form->checkbox, with each check 
box representing a browser. 
When the the submit button is pressed, the POST request is sent to the 
searchByBrowser function in the controller and 
the view is updated with the appropiate data.

Now I am adding sort() functionality using Paginator->sort() and it sorts 
by the specified column just fine.  

However, when I use the searchByBrower function to get the appropiate view 
and then try and sort the displayed data, it resets everything
to showing all the full dataset and the checkbox is no longer checked.

Is there a way to get everything to work the way it should with just 
CakePHP?

Thanks.


<https://lh5.googleusercontent.com/-LCH0weRW-7I/Uw67CrrwNYI/AAAAAAAAAL0/BheSsX7F6CM/s1600/2.png>

1 - Full data set view


<https://lh5.googleusercontent.com/-0s4vsxnDZ_Q/Uw67Fc0t-SI/AAAAAAAAAL8/vxPjY_HSK4E/s1600/3.png>

2 - Just Firefox data

<https://lh3.googleusercontent.com/-yDNtPKrJf3I/Uw66_loiPYI/AAAAAAAAALs/qUYZso_zCcg/s1600/1.png>

3 - Sorted on http_method, full dataset again (instead of just firefox data)





-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to