> Thanks, guys (especially to Tilen for his constructive feedback on my
> posting habits ;-) ).
>
> It seems to me I often run into limitations of CakePHP
I think you need to be careful what you call a limitation, and of
what. How is the way php works "a limitation".
cake implements partial variable merging because it helps users and is
a reasonable compromise in terms of execution time v benfit.
> that I hope I
> can't be the only one who faced them yet and that there's a well known
> work-around already. In fact, I often seem to be the only person who
> had the need for them yet, and that's sometimes a bit surprising to
> me, because I'm definitely not creating very high-end-featured
> websites with CakePHP yet, and in those cases I'm just interested in
> knowing the reason why those features aren't available in CakePHP (for
> which I'm sure there are diligent thoughts behind these decisions).
> I'm just the kind of person who's not satisfied with only the fact
> that something IS or ISN'T, but rather is interested in WHY IT IS or
> ISN'T.
That's a great mentality to have.
>
> So to get back to my question I'd really like to know WHY
> __mergeVars() only supports "pseudo inheritance" from AppController
> and doesn't do it e.g. recursively through the whole inheritance-chain
> down to AppController.
performance and code simplicity. More than 80% of the time (and
realistically probably more than 99% of the time) there isn't an
intermediary controller object to consider. As such traversiing the
classes is simply unnecessary and the 'cost' of doing that is pretty
small.
> Maybe it's a performance issue? Maybe it's
> planned for a next release? Sadly the inline documentation of CakePHP
> codes isn't very exhaustive which is pitty because THERE's the place
> to put such "business decisions" when there's no other place for such
> informations (or maybe I haven't found this resource yet?).
>
> Anyway, no offense to anybody. I don't want to bother anyone or strain
> this mailing list, so if my questions really don't fit here I'm happy
> somebody's telling me this and I will think about what I could change
> in my habits so everybody is happy. I'm using forums and similar
> communities for quite a long time now, and I never had problems of any
> sort, but maybe things run a little different here. Thanks, Tilen, for
> subtly pointing me to this problem with your comment. ;-)
I think if you asked questions after investigating - or showed what
you've found whilst asking your questions you'll get more answers.
Right now seeing "--psybear" in a thread (why are you doing that?) is
an easy filter your messages for those who don't want to get drawn
into bikeshed debates.
AD
--
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