Hi, i hope someone can help me here please, I need help with my
controller function, I want to get products by user_id, unfortunately
I have no idea where to start, help will be greatfully received.
Here is my code so far...
class ProductsController extends AppController {
var $name = 'Products';
var $uses = array('Product', 'Category', 'User');
var $components = array('Search','Files');
function view() {
$this->Product->recursive = 0;
$this->set('products', $this->paginate());
$this->set('users', $this->User->read(null, $id));
}
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---