Sunday, April 17, 2011

Re: Vs Echo

On Sun, Apr 17, 2011 at 10:11 PM, Krissy Masters
<naked.cake.baker@gmail.com> wrote:
> This might be rather dumb, but all the same…
>
>
>
> <?php echo $var;?>  vs <?php  __($var); ?>
>
>
>
> From reading __() is for l10n  i18n type translate type setup but if used
> just to echo a var is there a downside? Performance issue, just plain wrong?

There's not really any point in doing that as you're calling an extra
function for nothing. So there must be some small performance hit.

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate