Re: pagination problem, please help

2012-11-18 Thread Chris
thank you Ivan,... I have tried that by the book,... and probably missed something on its way in a first place,... well,... this is what I got now, and it's working, function category($id = null) { if($this->is_user()) { $this->set('user_obj', $user = $this->User->findBy

Re: pagination problem, please help

2012-11-18 Thread Ivan Rimac
i think this is your answer: function category($id = null){ if($this->is_user()) { $this->set('user_obj', $user = $this->User->findById($this->user['id'])); } $category = $id; $cat_id = array_search($category, Configure::read('Blog.blog_category')); $this->paginate = ar

pagination problem, please help

2012-11-18 Thread Chris
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) { if($this->is_user()) { $this->set('user_obj