1 answer
0 votes
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
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
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
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
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
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
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
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
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
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
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
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...
1 answer
0 votes
Pagination without a model
Hey,
I'm trying to paginate a bunch of data without a model. My controller builds an array of files present in a directory (on disk, on server). I'd like to have that list of files paginated. The problem is, I don't use a model, so...
0 answers
0 votes
Pagination HABTM relationships
I have a list of categories that when clicked on show all jobs related to that category. I need to paginate the results but I have not had any success after scouring the documentation and various blogs. What am I doing wrong?
<?php
class... 0 answers
0 votes
More than one pagination in view?
Hello I would like to ask on this questions.
I have got view, where i would like to have displayed recieved and sended messages.
View is called like messages/recieved and so with recieved messages works fine, but with sended i have got a little...
1 answer
0 votes
Ajax pagination how to hide main div
I am working with Ajax pagination and it works well, but I'm wondering if there is a way to hide the 'update' div when the 'indicator' div is visible. I'm thinking I could write a javascript to show or hide my div and call that at the...
1 answer
0 votes
Cannot set LIMIT in pagination
Hello, I have got a problem with pagination:
If I need to use query with some conditions to paginate i tried this:
{{{
$this-paginate = array('conditions' = array(
'or'=array(
'Friendship.user_id' = $this-Auth-user('ID'),
'Friendship.friend_id' =...
1 answer
1 vote
Comment faire de la pagination sur des resultat I18N
Bonjour,
alors j'aimerai pouvoir faire de la pagination sur des résultats qui viennent de la table i18n.
J'avais besoin d'un composant pour faire un module recherche sur mon appli. J'ai fait quelques recherches, et j'ai trouvé les solutions...
0 answers
0 votes
pagination: jump to page containing id...
Hi all!
short situation sketch:
i'm using pagination in a way it's probably not really intended: i only display one on each page. that way, it was really easy to make an image viewer for my gallery with previous and next buttons.
then there is the...