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
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
-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
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
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
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
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
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
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
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(',',
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'];
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
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,
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
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
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
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.
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:
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
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() {
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 (
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:
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
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
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
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
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
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
28 matches
Mail list logo