base for example
i now want to make a view function of the shopController
function view($id) {
$this->Shope->id = $id;
$this->set('shope', $this->Shope->read());
$this->set('prod', $this->paginate('Product'));
$this->set('users', $this->Session->read());
$views_value=$this->Shope->field('views');
$views_value++;
$this->Shope->updateAll(
array('Shope.views' => "$views_value"),
array('Shope.id' => $id)
);
so when i view it on the site it's make the paginate right, but it's
paginate all the Products not the Products that's belong to this shop
so how i can make it paginate just the Products that's belong to this
shop
?!!!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment