On 10/25/06, francky06l <[EMAIL PROTECTED]> wrote:
Sorry, I forget to mention that the Model to bind to will always follow a naming convention, i.e. [CallingModelName]sItem
e.g. CartsItem, SalesItem, OrdersItem etc...
However, their fields will be different.
Does this make any difference?
I just want to avoid duplicating code.
Cheers,
Sonic
I do not see how you can achieve this since the model to bind will
depend of the current model. Unless you define a static array into the
app_model (base) and call a function there that can then know which
model you are calling from, I do not see another way.
Sorry, I forget to mention that the Model to bind to will always follow a naming convention, i.e. [CallingModelName]sItem
e.g. CartsItem, SalesItem, OrdersItem etc...
However, their fields will be different.
Does this make any difference?
I just want to avoid duplicating code.
Cheers,
Sonic
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
