Try changing
from:
class ClientsController extends CoreAppController
to:
class ClientsController extends AppController
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Wed, Jul 21, 2010 at 1:30 PM, Bryan de Asis wrote:
> I'm having errors when trying to execute Pagination I'm not having
> this kind of problem on version 1.2.x:
>
> Warning (4096): Object of class JsHelper could not be converted to
> string [CORE/cake/libs/view/helpers/javascript.php, line 259]
> Notice (8): Object of class JsHelper to string conversion [CORE/cake/
> libs/view/helpers/javascript.php, line 259]
>
> Fatal error: Cannot use object of type JsHelper as array in /home/
> bdeasis/lib/cakephp-1.3.2/cake/libs/view/helpers/javascript.php on
> line 260
>
>
> And this is my controller look like:
> class ClientsController extends CoreAppController
> {
>
> public $name = 'Clients';
> public $paginate = array(
>'limit' => 1,
>'order' => array(
>'Client.created, Client.modified'=>'DESC'
>)
>);
>
>public function beforeFilter()
>{
>parent::beforeFilter();
>}
>
>public function index()
>{
>$data = $this->paginate('Client');
>$this->set('data',compact('data'));
>}
> }
>
> but if I comment $data = $this->paginate('Client'); or just using find
> it is working fine. i think it is in the paginate method.
>
> Can any one help me... Thanks...
>
> Bryan de Asis
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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