0 answers
0 votes
How to output UTF-8 sign inside paginate (paginator)?
Hello,
i want output a UTF-8 arrow. My charset is set to UTF-8. It works when i write:
[code]
<?php echo '↑' ?
[/code]
But _NOT_ with paginate:
[code]
<?php echo $paginator-sort(array('asc' ='id ↓', 'desc' ='id ↑'),...
0 answers
0 votes
Pagination for Massive Records
I was able to make pagination work in my application that just lists all the records from a model. However, once I populated my database with over 30,000 records, the page doesn't load at all. Either it timed out or an internal server error page...
0 answers
0 votes
Pagination.
Hi all,
I am stuck on pagination. I am trying to paginate feePayment records based on certain criteria.
feePayments belongs to Students which in turn belongs YearGroups.
I want to paginate 'unpaid' feePayments for each year group. The problem I am...
1 answer
0 votes
Paginate? Recursive? What are they doing?
Avast,
One tutorial I used has this for the index() method:
$this->User->recursive = 0;
$this->set('users', $this->paginate());
which i was a little unsure what to do with. Ok, i get that I can now access, from my index.ctp, a $users variable,...
1 answer
0 votes
Counts for Associated Tables (hasMany)
I'd like some advice on the CAKE way of getting a count of an associated (recursion 1) table, and paginating that. e.g.
Recipe belongsTo Author
Recipe hasMany Commentsin my recipes_controller I have a function recentRecipes()` that will perform a...
1 answer
0 votes
CakePHP paginate conditions in derived fields how?
Hello, i would like to paginate a list of games, where the sport is a chosen sport.
the relatition is as followed:
Game BelongsTo Competition BelongsTo Team BelongsTo sport
What i would like to do is show all games where the teams sport_id = 1.
The...
1 answer
0 votes
paginate bindModel, contain, group by
Hi!
How do I paginate this?
$numCount = count($searchTerms);
$contain =... 1 answer
0 votes
Probleme avec Pagination et le tableau Uses
Bonjour,
J'ai un controller nommé sports_controller, il gère des sous-rubriques, du genre news, etablissements, ...
Ce controller utilise des models via le tableau: var $uses =array('SportsNews', 'SportsEtablissement');
Suivant la rubrique:...
1 answer
0 votes
Data filtering help
In my application, Blogs hasMany Keywords.
I'm fetching the data on paginate, and of course, all keywords belonging to a given blog are fetched.
What I want to do is fetch ONLY the keyword with created (a DATE field) nearest from today, (in the...
1 answer
0 votes
How do I paginate with search parameters?
Hi all,
Here's what I'm trying to do:
Initially when a user goes to the home page, we display all results, paginated, limited to 5 per page.
The user then has the option to enter a query, which we then match against the result set, and return, also...
1 answer
0 votes
Paginate doesn't show distinct id
Hello,
I have a problem with paginate. Instead of showing distinct id's it duplicate the number of rows. For example if in my database exists only 1 record, paginate brings me 3 identical records.
Can someone help me?
I use cakephp 1.2.5
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
0 votes
I can't get a user data condition requested with a null and spesific id
<?php
function someController()
{
$user_id = $this->Session->read('Auth.User.id');
$this->Announcement->recursive = 1;
$this->paginate = array
(
'conditions' => array
(
'Announcement.user_id' => array($user_id,null)
),
'limit'... 2 answers
0 votes
Paginator->Sort() using related virtualField
Hi, is it possible to use the paginator to sort using a virtualField in a related model?
Here is a simplified example of what I'm trying to do using a fresh baked app with 1.3.1:
Database:
CREATE TABLE `customers` (
`id` int(11) NOT NULL...