I happen to agree that __() shouldn't echo by default. In fact, I'd argue it shouldn't echo at all.
Taking a queue from CakePHP1.3 The SessionHelper no longer auto echos (it was the only Helper that echo'd its results). I think that's a good philosophy to follow going forward. However I disagree that CakePHP devs make the wrong decision about default parameters. Other than this, I can't think of any other default parameter I don't normally use more often than not; that's a pretty good default decision rate in my book. =) Nick On Mar 23, 7:54 pm, cricket <[email protected]> wrote: > On Mar 23, 8:50 pm, saidbakr <[email protected]> wrote: > > > Well, > > So, What is about the true parameter? > > The true parameter is an example of the Cake devs once again making > the wrong decision about default function parameter values. IMHO, of > course. > > More specifically, the function will return either the translated > string or echo it. See basics.php. 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 [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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
