Re: Conventions - Process - More than one object to tag

2008-06-14 Thread José Pablo Orozco Marín

Thanks.

But i want a Tags table for post and another Tags table for
user profiles. The association for each one is HasONe.

Can i use?

posts
posts_posttags
posttags

profiles
profiles_profiletags
profiletags





Abhimanyu Grover escribió:
 Just use

 posts_tags
 profiles_tags

 Remember, you dont need to have 2 models for 'Tag'. Its the
 association which will vary and can be increased to 'n' number of
 Models.

 On Jun 14, 6:59 am, Josoroma [EMAIL PROTECTED] wrote:
   
 Cool, your tutorial is very helpful.

 I was wondering how to name tables, for example if i have
 the following problem, i need to tag posts and to tag user profiles in
 different tables, then im confuse how to name tables:

 posts
 posts_tags
 tags

 profiles
 profiles_???
 ???

 Or can i use something like:

 posts
 posts_posttags
 posttags

 profiles
 profiles_profiletags
 profiletags

 I dont know if im breaking the conventions of 
 cake:http://book.cakephp.org/view/22/cakephp-conventions

 Thanks in advance.
 
 

   


-- 
 


Con toda libertad consulte:

http://www.SukiaLogic.com/blog


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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?hl=en
-~--~~~~--~~--~--~---



Re: Conventions - Process - More than one object to tag

2008-06-13 Thread Abhimanyu Grover

Just use

posts_tags
profiles_tags

Remember, you dont need to have 2 models for 'Tag'. Its the
association which will vary and can be increased to 'n' number of
Models.

On Jun 14, 6:59 am, Josoroma [EMAIL PROTECTED] wrote:
 Cool, your tutorial is very helpful.

 I was wondering how to name tables, for example if i have
 the following problem, i need to tag posts and to tag user profiles in
 different tables, then im confuse how to name tables:

 posts
 posts_tags
 tags

 profiles
 profiles_???
 ???

 Or can i use something like:

 posts
 posts_posttags
 posttags

 profiles
 profiles_profiletags
 profiletags

 I dont know if im breaking the conventions of 
 cake:http://book.cakephp.org/view/22/cakephp-conventions

 Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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?hl=en
-~--~~~~--~~--~--~---