cakephp show the records from just that id -
i have table has products. in view page want show products belong customer. customer number in url @ end /12 or /45 etc how can that. new cakephp yhanks
your routes should automatically pass method value $id
. if baked controllers.
within method run find() method following.
$customer = $this->customer->find('first', array('conditions' => array('customer.id' => $id)));
it's difficult providing exact code without knowing more app. check out links , put on path.
Comments
Post a Comment