I using checkbox and have try it... This like Posts and Tags, both of them in HABTM relations. for example, in form add post :
on View post : <?php echo $form->create('Post');?> ..... <?php echo $form->input('Tag.Tag', array('type'=>'select', 'multiple'=>'checkbox', 'options'=>$tags, 'label'=>'Tags:<br />')); ?> ... <?php echo $form->end('Save');?> on Post Controller : function add() { $this->set('tags', $this->Post->Tag->find('list')); if(!empty($this->data)) { $this->Post->save($this->data); } } Regards, Yodiaditya - http://re.web.id On 10/14/08, cem <[EMAIL PROTECTED]> wrote: > > > Hi ; > > In my application one project can have more than one category . > And there is a HABTM relationship between categories and Projects . > How can I save more than one category for a project while creating a > project how should I design the check boxes? Did anyone tried > something similar before ? > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---