Class names could be defined not to conflict with possible object
names, for example by always having class names prefixed with a T,
TAppController, TController, TObject etc.
Just a suggestion :)
   John

On Apr 16, 4:52 pm, Grzegorz Pawlik <[email protected]> wrote:
> Additionally You rather shouldn't name Your model/controller like
> Object/Objects and Page/Pages ;)
>
> On Apr 16, 12:52 pm, "Mark (Germany)" <[email protected]>
> wrote:
>
> > yeah
> > i once proposed to change components into
>
> > $this->FileComponent->foo()
>
> > etc with "Component" attached to prevent this from happening
>
> > but they did not care about that much in the core team at that point
> > in time :)
>
> > PS: same with helpers (conflicts between vars from controller):
>
> > $poll (content array from table polls)
>
> > $poll (helper)
> > -> better: $this->poll (like inside other helpers), or at lest
> > $pollHelper->...
>
> > On 16 Apr., 06:59, John Andersen <[email protected]> wrote:
>
> > > Thanks Dr. Loboto,
> > > That may be, but not in my case, as I don't use any components
> > > together with my installations controller, and each model, loaded by
> > > request, does not have any conflict with CakePHP or other parts, so to
> > > sum it up, I am happy with that :)
> > > Enjoy,
> > >    John
>
> > > On Apr 16, 5:36 am, "Dr. Loboto" <[email protected]> wrote:> There can 
> > > be also conflict between models and components names (not
> > > > classnames).
>
> > > > On Apr 16, 1:45 am, John Andersen <[email protected]> wrote:
>
> > > > > Thanks Dardo and Teh, but it turned out to be a conflict between all
> > > > > my models, when I loaded them all in an installations controller :)
> > > > > Solved by loading the models only by request (ClassRegistry).
> > > > > Enjoy,
> > > > >    John
>
> > > [snip]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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