Sorry, but you need to login to access this location.

Questions tagged with paginate

0 answers

0 votes

Asked by saeed, 4 days, 11 hours ago in

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

Asked by mee, on 2/4/10 in

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:...

0 answers

0 votes

Asked by joannareyes, on 25/6/10 in

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...

1 answer

0 votes

Asked by andreibogdan, on 6/5/10 in

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

0 answers

0 votes

Asked by sebb86, on 30/4/10 in

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 '&#x2191;' ?

[/code]

But _NOT_ with paginate:

[code]

<?php echo $paginator-sort(array('asc' ='id &#x2193', 'desc' ='id &#x2191'),...

1 answer

0 votes

Asked by Lobosque, on 5/4/10 in

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...

2 answers

0 votes

Asked by LaneO, on 29/5/10 in

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...

1 answer

0 votes

Asked by twistedpear, on 19/1/10 in

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 Comments

in my recipes_controller I have a function recentRecipes()` that will perform a...

2 answers

0 votes

Asked by JacopKane.myopenid.com, on 8/2/10 in

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

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?

1 answer

0 votes

Asked by sucram, on 2/3/10 in

paginate bindModel, contain, group by

Hi!

How do I paginate this?


		$numCount = count($searchTerms);		
		$contain =...

1 answer

0 votes

Asked by Calimer0, on 17/2/10 in

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

Asked by aiyer, on 11/1/10 in

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,...

<< previous next >>