Julian, AD I have similar problem. I have a parent-child relationship and I have baked using scafolding as usual. I get the view of parent from where I want to add a a child. So I have placed a link like
/child/addToParent/1 This link appears in the view of parent so that a user can click there and add a child. This meas the parent id is preselected. Now I have written the controller addToParent and the view add_to_parent($id) and I can see that $id is being properly passed to this. What I dont know heer is how to use that id when I am saving the data for the child. I have tried $this->data['parent_id'] =$id just before saving the data. it does not work. Besides the above problem I am wondering if there is a good tutorial about the anatomy of the cake. The problem I am having is very basic, and is because I dont know the basic anatomy of cake structure. All I could find is the stupid manual:( Regards <a href='http://contents-magic.com/'>Cake Newbee</a> On Nov 22, 11:23 am, julian <[EMAIL PROTECTED]> wrote: > AD thanks for the input, I believe I was misleading in my > terminology, I see I used the proase scafolding. what i meand was > the "standard views " you geat when you bake a view and specify no > scafolding > > once again sorry for mixing up my terms > > Julian > > On Nov 22, 12:41 pm, AD7six <[EMAIL PROTECTED]> wrote: > > > You don't, you write an application. Have a look at baking none- > > scaffolding controllers/views, and edit what you get out. > > > hth, > > > AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
