From: Ivan Rimac <ivn...@gmail.com>
Date: Sun, 18 Nov 2012 22:51:33 +0100
Local: Sun, Nov 18 2012 4:51 pm
Subject: Re: pagination problem, please help
function category($id = null){
if($this->is_user()) {
$category = $id;
$this->paginate = array('Blog' => array('conditions' =>
$this->set(compact('blogs', 'category'));
On Sun, Nov 18, 2012 at 9:05 PM, Chris <chris...@yahoo.com> wrote:
-- > hi guys,... I have a problem with pagination in a controller,... can > someone help me please,... > I'm getting an error: SQL Error: 1054: Unknown column 'limit' in 'where > clause' > how can I do this,...?
> function category($id = null)
> $category = $id;
> $cat_id = array_search($category,
> $this->set('category', $category);
> $blogs = $this->Blog->find('all', array('conditions' =>
> $this->set('blogs', $blogs, $this->paginate('Blog', array('limit' =>
> thanks in advance,
> --
> ---
*Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||