Re: Limit $paginate->numbers()

2009-05-07 Thread Benedikt R.

Thanks for your answers, but I meant the amount of numbers, that is
displayed when calling the numbers-function.

The solution is the parameter 'modulus'.

Example:
$paginator->numbers(array('modulus'=>3));
--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Limit $paginate->numbers()

2009-05-07 Thread brian

On Thu, May 7, 2009 at 11:11 AM, Stu  wrote:
>
> yeah, I actually call it from the app_controller, for I need a page
> limit of 10 entries globally so mine actually looks like:
>
> var $paginate = array('limit'=>10);
>
> but, if you want to change it for one controller, yes it would be:
>
> $this->paginate = array('limit' => 10);

If the change is for a particular *action* it should be:

$this->paginate['limit'] = 10;

So, only the limit option is overridden. The example above would have
wiped out any other options.

When setting the options globally for a controller:

var $paginate = array('limit' => 10, other options here);

--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Limit $paginate->numbers()

2009-05-07 Thread Stu

yeah, I actually call it from the app_controller, for I need a page
limit of 10 entries globally so mine actually looks like:

var $paginate = array('limit'=>10);

but, if you want to change it for one controller, yes it would be:

$this->paginate = array('limit' => 10);


--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Limit $paginate->numbers()

2009-05-07 Thread arif hossen
I think its:

$this->paginate = array('limit' => 10);


Thanks



On Thu, May 7, 2009 at 1:45 AM, Stu  wrote:

>
> Wait,
>
> did you mean the number of results displayed by page?  If so :
>
> $paginate = array('limit'=>3);
>
> Cheers
> >
>


-- 
Regards,
Mohammad Arif Hossen
Junior Web Developer
United Group International(UGIBD)
Mobile: +88 01714355911

--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Limit $paginate->numbers()

2009-05-06 Thread Stu

Wait,

did you mean the number of results displayed by page?  If so :

$paginate = array('limit'=>3);

Cheers
--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Limit $paginate->numbers()

2009-05-06 Thread Stu

I think it's :

$paginate = array('numbers'=>3);

Cheers
--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Limit $paginate->numbers()

2009-05-06 Thread Benedikt R.

Hey!

Is there a way to limit $paginate->numbers() ? I tried:

$paginate->numbers( array('limit'=>3) );


Regards,
Benedikt R.
--~--~-~--~~~---~--~~
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, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---