hello i have some problems here
i have fields Active i'm try do a find in index find all conditions active => 1
i want only active to 1 to show not to 0
here is the code
function index($id = null) {
$this->Item->recursive = 0;
$this->set('items', $this->paginate());
$item = $this->Item->find('all', array(
'conditions' => array(
'Item.active' => 1,
)
)
);
$this->set('item', $item);
}
thank you for the help guys
--
View this message in context:
http://n2.nabble.com/help-plz-tp2581224p2581224.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---