sometimes I find it harder to read but other than that it should
usually work just fine :)
what i really helps with are generic controller actions.
On 31 Mrz., 17:29, "Krissy Masters" <naked.cake.ba...@gmail.com>
wrote:
> Sometimes because of naming conventions / join tables you might end up with
> a long crazy name or easily misspelled like
> $this->EmployersEmployee->doSomething(); (EmployerEmployee is an example so
> no answers saying use a different name or change relations, that's not what
> the question is about)
>
> or something where so you could infact use
> $this->{$this->modelClass}->doSomething();
>
> Is there anything wrong by just using $this->{$this->modelClass}-> in the
> controller for these times or for general use if your just lazy?
>
> Thanks,
>
> K
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment