Questions tagged with pagination

1 answer

0 votes

Asked by davidcroda, on 29/11/09 in

Ajax Pagination CakePHP 1.3

I am wondering how to specify you want ajax pagination in the CakePHP 1.3 core.

this is my current $paginator array which properly performs Ajax pagination on the 1.2 core. On the 1.3 it just creates a normal link.


$paginator->options(array(
   ...

2 answers

1 vote

Asked by gishdog, on 2/12/09 in

Option for Current Link In Pagination Helper

I'm using the PaginationHelper and in my view I need to set the class for the current page's link to "current number" and I also need to get rid of the | characters before and after the pages.

I can set the overall class but not the current page...

1 answer

0 votes

Another question regarding pagination with habtm

I'm really new to cake, and I did all my research, read all the info I found but I'm still so confused about all this.

First, let me describe my database schema a bit:

1. Project: project table contains user_id (this is the "owner" of the...

1 answer

0 votes

Asked by sebb86, on 15/1/10 in

pagination: what is my fault?

Hello,

i'd like to sort ascending and descending in my table columns. First of all, i'd lile to sort by the field "inventory_number" in the model "HardwareUnit" (table "hardware_units"). So i have written the following source:

Controller:


var...

0 answers

0 votes

Asked by Sebas, on 17/1/10 in

What's the best way to get a pretty pagination?

I'm trying to do a pagination like this:

[1] 2 3 4 ... 8 next

But, when you are almost on the last it's appears like this:

1 ... 4 5 6 [7] 8 ... 8

The last number(8) is repeating it self, why? i don't know, but the correct way it's like this:

1 ... 4...

1 answer

0 votes

Asked by twistedpear, on 28/1/10 in

Pagination ordering of associated models

A "Ticket" hasMany "Options"

I want to paginate my data such that I can (in the view) show each a row of:


[ Ticket | opt 1 |       | opt 3 ]
[ Ticket | opt 1 | opt 2 | opt 3 ]
[ Ticket |       | opt 2 | opt 3 ]

etc. Some options may be present...

2 answers

0 votes

Asked by TyCam, on 3/2/10 in

Limit total number of results in Pagination?

I have a paginated page where I have over 1000 database records. How do I limit the per page results to 20 AND have the total results limited to 1000?

2 answers

1 vote

Asked by designvoid, on 29/1/10 in

Is it possible to paginate by dates

I have a blog with 100's of posts and I would like to paginate them, however I would like to have each page show the posts for a month ie:

<< NOV2009 | DEC2009 | JAN2010 >>

Is this at all possible using the pagination system in CakePHP?

1 answer

0 votes

Asked by MichaelMafort, on 29/1/10 in

Has way to fixed the pagination params in navigation, by default?

I'm learn about cakephp and not find properties to set the pagination to keep the params into args url.

Example:

List users, ordered by name and I'm in second page, clicked in edit, data has edited and click to save, data has been saved! I want to...

1 answer

0 votes

Asked by ABCoder, 1 month, 2 days ago in

Pagination from Model

I follow the "Fat Models and skinny Controllers" rule. I placed all my find() functions in models and just call them from controllers. In fact this is the best method to maintain big projects.

The problem is I can not use pagination from Models...

1 answer

0 votes

Asked by ABCoder, 1 month, 1 day ago in

Ajax pagination using JSON data

Cake has default ajax pagination feature, but the output is in html which is not a good idea and huge amount of data transfer.

I want to use JSON to reduce data transfer. Is there any "ready-made" stuff for pagination using json (and jQuery).

1 answer

0 votes

Asked by richardwo, 1 month ago in

How to paginate a web service API DataSource

I have created a DataSource to interact with an external web service API. Along with the requested data, the web service returns a field showing the total available rows and you can send start and limit parameters in the request, so pagination...

1 answer

0 votes

Asked by TheKog, 3 days, 21 hours ago in

How To View Multiple Tables With Pagination On A Single Page

In CakePHP 1.2 we need to have a single page with multiple tables on it each with their own pagination. For example given People and Tasks controllers, we need to put up a page (as an action from either controller or from a 3rd controller) that...

<< previous next >>