Re: getting edit view of HABTM

2008-10-02 Thread villas
Hi jojiju, See the book: http://book.cakephp.org/view/24/Model-and-Database-Conventions "Join tables, used in hasAndBelongsToMany (HABTM) relationships between models should be named after the model tables they will join in alphabetical order (apples_zebras rather than zebras_apples)". Therefo

Re: getting edit view of HABTM

2008-10-02 Thread jojiju
thanks for reply, but sorry to say that it doesn't work.actually my model looks like as follows employee.php class Employee extends AppModel { var $name = "Employee"; var $actsAs = array('extendAssociations'); var $hasAndBelongsToMany = array(

Re: getting edit view of HABTM

2008-09-29 Thread glenda guo
the default form action parameter is add ,as below, you just need to assign it echo $form->create(' > > EmployeesAccreditation', array('action' => 'edit')); On Sun, Sep 28, 2008 at 7:58 PM, jojiju <[EMAIL PROTECTED]> wrote: > > hi all, >I have tables employees and accreditations and join ta

getting edit view of HABTM

2008-09-28 Thread jojiju
hi all, I have tables employees and accreditations and join table called employees_accreditations. now I want to build the edit form which should populate the information both from employees and accreditations. its driving me crazy please help.