http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html
--
-- --
Lep pozdrav, Tilen Majerle
2012/2/25 reynierpm@gmail.com <reynierpm@gmail.com>
Hi:
I have a table called "informations" (http://pastebin.com/h3UiUhpx) and also have this associated tables "educations", "attachments" and "experiences" (http://pastebin.com/RdWzfria) (please see pastebin URLs I put the code there to not ugly the post). As you may notice all this tables have a relationship with informations so data coming from informations form is saved there. I use bake for create the models, views and controllers for this tables. Now when I add all is fine except for the attachments because it's a FILE input type and I don't know how to handle this part so any help will be very appreciated but the problem here is when I try to edit any records for informations table because none record from the relations tables is showed and don't know the cause. The code for informations model is here: http://pastebin.com/bEY3beBw, for the Controller is here: http://pastebin.com/muAQn3aH and for the view is here: http://pastebin.com/AEhPPCX0, can any help to fix this?
Cheers and thanks in advance
Ing. Reynier Pérez Mira
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment