i think this is not the right way to go not without reason 1.3 does not echo anymore by default in many places and soon, __() will not, either
this is a step backwards there is nothing wrong using echo $this->Html->... it gives you more control over the code and enables you to chain the results. this would not be possible without the returning of the results. so my advice is to drop this. you still need <?php and ?> (note: not <? !!!) anyway. On 15 Apr., 17:42, varai <[email protected]> wrote: > Hi, > > Can someone tell me what is the use of? > $this->Html->meta('icon'); > > Referring to the cakephp cookbook, page 274, in order to get rid of > the many <? ?> and many echo() calls, i added the following code to > app_helper.php under class AppHelper extends Helper: > > function output($str){ > echo($str); > > } > > However, the above code doesn't seem to work. > > what is wrong with the code? does anyone know? > > thank you. > Vaani -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
