I have 3 models in cakephp
- properties
property id name area sub area 1 name 1 india -- 2 name 2 india -- 3 name 3 uk -- 4 name 4 pakistan --
- portals
portals_id portal name 1 google xml 2 zameen.com 3 buy property 4 rent property
- property_portals
property_portals_id portal_id property_id 1 1 1 2 1 1 3 2 2 4 2 2 5 2 3 6 1 4 7 1 1
I have a grid system which search properties on different attributes.
Now i want to search only those properties which will advertise on specific portal.
I am using pagination.
$this->set('properties', $this->Paginator->paginate('Property'));