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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -