php - cakephp paginate post data -


I need to create a search method with pause data:

search method:

  Public work find_estate () (if isset ($ this- & gt; Request-> Data ['type'])) {$ type = $ this- & gt; Request- & gt; Data ['type'];} and {$ type = "";} if ($ type! = "") {If ($ type! = "All") {$ where [] = "Estate. Melk_type LIKE '$ type '';}}} if (isset ($ where $)) {$ this- & gt; paginate = array ('estate' = & gt; array ('border' = & gt; 4; 'command' = & Array ('Estate.ind' = & gt; 'desc'), 'field' => array ('eid', 'melk_type', 'status', 'image'), 'conditions' = & gt; ; Imp Lode ("and", $ where),)); $ this-> set ('property', $ this- & gt; pagination ());}}   < P> But how can I endorse with post data?   

When you are switching pages, you need to send a $ type right, I will also use the method to get it if it is a simple search with a field that I see Because you do not test for the law, you can easily add the search paragraph URL of the URL to the endorsement

There is another question about it, you are official

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -