Hi! I have a SearchController with the following index action:
function index() {
/* Check if new search occured */
if (!isset($this->params['url']['q'])) {
//$this->Session->setFlash('New search');
//$this->paginate();
$this->render('newsearch');
}
.....
}
AppController has var $helpers = array('Auth', 'Html');
The problem is I receive the error Undefined variable: form, but when
I uncomment the line "$this->paginate();" it works ok.
The questions is it is required to call $this->paginate(); ? because
all examples I saw had nothing like this.
Thanks for help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---