Is it hard to check?

On 12 Sty, 20:06, Parris <presid...@parrisstudios.com> wrote:
> Would that not cause namespace issues if there were more than one
> controller with the same name in the entire app? Doesn't the model
> need to be named PollPoll not just Poll?
>
> On Jan 12, 12:32 am, Grzegorz Pawlik <grzegorzpaw...@gmail.com> wrote:
>
> > In 1.2 I would name model Poll, and Tag, and in PollAppModel set
> > $tablePrefix = "poll_"
> > So You would have poll_polls, poll_tags and poll_posts_tags. As fas as
> > I remember - that worked :)
>
> > Btw, when You define relations It would be for Poll model
> > var $habtm = array("Poll.Tag");
>
> > Good luck
>
> > I'm not familiar with 1.3
>
> > On 12 Sty, 04:39, Parris <presid...@parrisstudios.com> wrote:
>
> > > I posted this on stackoverflow, but didn't really get the response I
> > > was looking for....
>
> > > Hi everyone,
> > > I know naming conventions for tables used by plugins generally start
> > > with the name of the plugin and then the model pluralized. For example
> > > lets say I had a plugin called Poll, with a model also called PollPoll
> > > and another model called PollTag then the resulting table names would
> > > be poll_polls and poll_tags. They would also have a habtm relationship
> > > so what is the convention for that table name? I believe it would
> > > poll_poll_polls_poll_tags, although it is a little redundant it makes
> > > sense since the first poll_ represents the name of the plugin, while
> > > poll_polls and poll_tags relates to the models.
>
> > > Also have any naming conventions changed for plugins in 1.3? Is the
> > > above stated correct? Thanks!
>
> > > By the way,  just to make this clear, no other models would really
> > > access this plugin's tables, which would make it suitable as a
> > > plugin.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to