This just sound like the regular Cake find-action
In the action for your view, just use
$this->set($data, $this->yourModel->find('all', array('conditions' =>
array('yourModel.city' => $varCity, 'YourModel.name' = > $varName)));
And the you can acces the data from your table in the view you want by
accessing the $data variable.
On 14 okt, 13:37, lokesh sharma <[email protected]> wrote:
> Hi, In my cakephp web application I have to search data from single
> table on the basis of city and name and display result in another
> page.ctp. Please tell me about any search plugin or find condition or
> the way to pass query to search data from my table.
> I've already tried some tutorial but there is no result.Please help me
> out.
>
> Thanks in advance.
> Regards,
> Lokesh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---