Wow, I'm loving cakePHP and have made a ton of progress.

What I'm trying to figure out now is the best approach for the
xml/view/save.

I have my xml loading and figured out and my form, I'm thinking :

A) do I use the bake utility to create a concrete version of my model
(assume to has all the data members from my table) and then :

1) read the xml
2) use the concrete version of my model and pass it to the view via the
controller
3) view uses an instance of the model to pre-populate the form
4) upon submit use the standard cake validation etc and write the model
to my database.

Or do I

B) Use the associative array version of my model and populate it with
xml :

1) read the xml
2) use the associate array version of the model and hope I spell all the
column names correctly

Steps 3 & 4 are same as above.


I'm a little nervous about trying to populate the "dynamic" model that
will be initial empty, maybe its because I come from a java background.
Is baking the model the preferred approach ?

Thoughts on this approach ?

Cheers,
Grant

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to