Re: Problem with Pagination of search results

2013-04-30 Thread Lilit
That's perfect! thanks again! -- View this message in context: http://cakephp.1045679.n5.nabble.com/Problem-with-Pagination-of-search-results-tp5714685p5714707.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Re: Problem with Pagination of search results

2013-04-29 Thread Lilit
I only had $this-Paginator-numbers() in view. I'll try to make it via GET.. but after knowing how to use with sessions :) Thanks for your reply ! -- View this message in context: http://cakephp.1045679.n5.nabble.com/Problem-with-Pagination-of-search-results-tp5714685p5714704.html Sent from

Re: Problem with Pagination of search results

2013-04-29 Thread Reuben
-with-Pagination-of-search-results-tp5714685p5714704.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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

Re: Problem with Pagination of search results

2013-04-28 Thread Lilit
I see nobody knows... -- View this message in context: http://cakephp.1045679.n5.nabble.com/Problem-with-Pagination-of-search-results-tp5714685p5714690.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

cakephp 2.0 pagination with search field

2012-02-08 Thread marcogo
HI, i'm trying to make an pagination search with cakephp 2.0 i want i pagination result with search field filled with the key in the page i do somethings like this echo $this-Form-create('News',array('class'='form-register')); echo $this-Form-text('News.search'); echo $this-Form-submit('Ricerca

Not working pagination after search

2010-03-05 Thread Hitesh Anjara
hi all, I have problem in my cake php project, In that one page that listing all items with pagination and in that page i also add search facility. In that page, I try to search any item at that time, it will display all item listing with pagination but i can't go next page or any particular

Re: Not working pagination after search

2010-03-05 Thread WebbedIT
We need more information, is your search results delivered from a different controller method to your index results. Are you using $this-paginate(); in both methods? Best bet is to copy/ paste your controller. HTH Paul Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: Pagination in Search Forms

2009-04-11 Thread Sourav
Thanks I went thru your tutorial it worked (in general). However there is a problem : In my search form there is a multiple selection list, which generates an array in the POST data. $this-data contains the following: Array ( [Job] = Array ( [job_category_id] = Array

Re: Pagination in Search Forms

2009-04-11 Thread Miles J
You would have to remove the array_map, and do your own loop. $clean = array(); foreach ($this-data[Inflector::camelize($model)] as $data) { $clean[] = (is_array($data)) ? implode(',', $data) : urlencode ($data); } --~--~-~--~~~---~--~~ You received this

Re: Pagination in Search Forms

2009-04-11 Thread Sourav
Thanks a lot, it works perfect ! On Apr 11, 12:39 pm, Miles J mileswjohn...@gmail.com wrote: You would have to remove the array_map, and do your own loop. $clean = array(); foreach ($this-data[Inflector::camelize($model)] as $data) {         $clean[] = (is_array($data)) ? implode(',',

Pagination in Search Forms

2009-04-10 Thread Sourav
I am building a search form which allows users to search for Jobs by category, location job title. My controller code is as follows: function search() { if(!empty($this-data)) { $title = $this-data['Job']['title']; $location = $this-data['Job']['location'];

Re: Pagination in Search Forms

2009-04-10 Thread Miles J
First off it should be $this-paginate['Job'] = and secondly you do not pass $this-data to the paginator. Are you trying to save the forum values into the url? If so take a look at my tutorial here: http://www.milesj.me/blog/read/30/proxy-search-_-doing-a-search-while-using-named-parameters

Re: beautiful link with pagination with search

2009-04-07 Thread catfish
That is even better with the paginator-options. Thanks. --~--~-~--~~~---~--~~ 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,

beautiful link with pagination with search

2009-04-06 Thread catfish
new member here. I am playing with cake now. One problem that bothers me is the search function. The search function will process post data, when in pagination, the paginator does not pass the search src. For example, I would like: site.com/search/search-string/page:1 In stead, the paginator

Re: beautiful link with pagination with search

2009-04-06 Thread brian
On Mon, Apr 6, 2009 at 12:28 AM, catfish trusa...@gmail.com wrote: new member here. I am playing with cake now. One problem that bothers me is the search function. The search function will process post data, when in pagination, the paginator does not pass the search src. For example, I

Pagination with Search / Filter Query

2008-10-13 Thread jwerd
Hello Fellow Bakers, I am building an application with a search / filter screen, but the arguments I'm passing thru aren't getting to the pagination links. As in, it completely ignores what was passed (as a get) and continues with /page:2, /page:3, etc... I have seen some examples on here how

Re: Pagination with Search / Filter Query

2008-10-13 Thread teknoid
http://book.cakephp.org/view/166/Pagination-in-Views See all the way at the bottom On Oct 13, 6:01 pm, jwerd [EMAIL PROTECTED] wrote: Hello Fellow Bakers, I am building an application with a search / filter screen, but the arguments I'm passing thru aren't getting to the pagination links.  

Re: Pagination with Search / Filter Query

2008-10-13 Thread jwerd
Teknoid, Thanks for the Link. I have visited that page and see the example used, but I can't seem to get $this-passedArgs filled with anything, it's always empty? What constitutues as a passedArgh in cakephp? :( Thanks again :) On Oct 13, 4:26 pm, teknoid [EMAIL PROTECTED] wrote:

Re: Pagination with Search / Filter Query

2008-10-13 Thread villas
Hi jwerd Well we don't know what hacks you've read, but here's a few things I saw: FAQ see section: How to retain search param in paging? http://groups.google.com/group/cake-php/web/faq?hl=en A few other links I found: http://groups.google.com/group/cake-php/msg/d9d2413b818446bd

Re: Pagination of search results

2008-10-01 Thread double07
Thanks for your input Martin, but I ended up going a slightly different way... Basically I decided to use a custom named parameter which in the end looks pretty tidy. So if anyone is interested, this is what I did: In my news controller: function admin_index() {

Re: Pagination of search results

2008-09-19 Thread [EMAIL PROTECTED]
Like you say this has been discussed quite a bit before. The way I was advised to do this (which works really well) is to POST (or GET) the search to a proxy-action that creates a nice url that paginator will play nice with and redirects you to our results. Example: function lookup() { if (

Pagination of search results

2008-09-18 Thread double07
Hi all, I know there's a lot of info around on this already but I haven't been able to solve this issue myself. I'm just setting up a simple search which will trawl through the titles and bodies of news items. I borrowed some code from the bakery here:

Re: Pagination and search.

2008-01-28 Thread bhushan A
Anbiah [EMAIL PROTECTED] wrote: On Jan 28, 10:56 am, bhushan A [EMAIL PROTECTED] wrote: I have achieved 'pagination' and 'search' differently. Means when i am putting my search criteria in text field then records are getting displayed as per search criteria but but pagination is not as per

Pagination and search.

2008-01-27 Thread bhushan A
Hi all I have achieved 'pagination' and 'search' differently. Means when i am putting my search criteria in text field then records are getting displayed as per search criteria but but pagination is not as per search criteria. How to achieve it? Do i need to change controller? If yes then what

Re: Pagination and search.

2008-01-27 Thread rtconner
http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 On Jan 27, 10:56 pm, bhushan A [EMAIL PROTECTED] wrote: Hi all I have achieved 'pagination' and 'search' differently. Means when i am putting my search criteria in text field then records are getting displayed as per search

Re: Pagination and search.

2008-01-27 Thread R. Rajesh Jeba Anbiah
On Jan 28, 10:56 am, bhushan A [EMAIL PROTECTED] wrote: I have achieved 'pagination' and 'search' differently. Means when i am putting my search criteria in text field then records are getting displayed as per search criteria but but pagination is not as per search criteria. How to achieve

Re: Pagination with search

2006-11-16 Thread AD7six
The easiest way is to use PRG and then the way outlined in the thread from yesterday (Nov 15): http://groups-beta.google.com/group/cake-php/search?q=pagination+searchstart=0scoring=d http://en.wikipedia.org/wiki/Post/Redirect/Get There are other ways, but that's the easiest, HTH, AD7six Please

Pagination with search

2006-11-15 Thread Bernard Grosperrin
OK, I guess I don't know enough to do what I want to, so I am running around in circles. I have a view, with a form sending request parameters to the same view. Works fine, build my query and display results OK. BUT, if I have more than one page of results, a click on next page, as it call