Hello,
I am using CakePHP in a project and would like to integrate a 'search'
function.
I'm not talking about a full index for the site (like htdig), but
mainly a search function for specific fields.
e.g. search for a person by name etc..
I'm not sure what's the best way to do this.
1.
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');
As
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 contoller
Abril de 2007 05:23 a.m.
Para: [EMAIL PROTECTED]
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 contoller
--~--~-~--~~~---~--~~
You received