In the case of still using your index action to list all the records of a
given table then you need to replace the commented line with.

$this->set('categories', $this->Category->findAll());

Or whatever query your after.

And then remove references to the paginator helper in the 'index' view.

When you comment out the line you did, you are not assigning the view var
'categories' nor fetching any data.

Sounds like you maybe need to read some documentation to understand whats
going on there.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Josoroma
Sent: Monday, 10 December 2007 3:53 p.m.
To: Cake PHP
Subject: How i can use an Index action without Paginate


Hi,

I need to use an index action without paginate, then if add comments
to:
  //$this->set('categories', $this->paginate();
I get a lot errors. Then if I use:
  $this->set('categories', $this->paginate('Category.id = 0'));
the errors gone.

How i can use an Index Action without paginate?

Thanks in advance.



__________ NOD32 2712 (20071209) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to