An easy way would be to simply re-create the same models, and specify
$useTable = 'categories' in each of the new model definitions.  This
way you can share the same table, but have separate model logic.

On Mar 7, 12:46 pm, Josoroma <[EMAIL PROTECTED]> wrote:
> I have the model, controller and views necessary to manage a nested
> set model using the tree behavior:http://bin.cakephp.org/view/1041355028
> My table is categories.
>
> Now, i need to manage categories of products, services and events.
> Because of that i created the tables:
> productcategories
> servicecategories
> eventcategories
>
> How do i re-use the same category model but only changing the table?
> Maybe selecting a categories table from select input in a view form?
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to