Re: Search function for application

2007-04-11 Thread [EMAIL PROTECTED]
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre > de digital spaghetti > Enviado el: MiƩrcoles, 11 de Abril de 2007 05:23 a.m. > Para: [EMAIL PROTECTED] > Asunto: Re: Search function for application > > If its a search controller, rather

RE: Search function for application

2007-04-11 Thread Mariano Iglesias
D] En nombre de digital spaghetti Enviado el: MiƩrcoles, 11 de Abril de 2007 05:23 a.m. Para: cake-php@googlegroups.com Asunto: Re: Search function for application If its a search controller, rather than in the users controller you need to make sure you delare $uses at the top of the cont

Re: Search function for application

2007-04-11 Thread digital spaghetti
In your controller If (isset($this->data['User']['username'])) { $user = $this->User->findByUsername($this->data['User']['username']); } If its a search controller, rather than in the users controller you need to make sure you delare $uses at the top of the contoller $uses = array('User');