in cake you can also do e($theThingToEcho); if you need a short hand. http://api.cakephp.org/basics_8php.html there are some other useful things here as well
Sam D On 3/29/07, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > > > On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > On Mar 30, 10:36 am, "savagekabbage" <[EMAIL PROTECTED]> > > wrote: > > > > <?=$html->link($u['User']['username'], > '/Users/edit/'.$u['User'] > > > > ['id'])?> > > > > > > I think you also > > > need to place an echo before the link so it will actually show up > > > (unless there's something I don't know about). > > > > Actually that's an old PHP shortcut which I use quite a lot > > > > <?=$value?> will echo $value to the page > > Basically it's the same as <?php echo $value; ?> but much quicker to > > type. > > I used to use it too, but since I often move code between web servers, I > decided against using the shortcut way as you need to have short_open_tag > enabled. Quoting www.php.net/echo: > > "echo() also has a shortcut syntax, where you can immediately follow the > opening tag with an equals sign. This short syntax only works with the > short_open_tag configuration setting enabled." > > Best regards, > Gonzalo. > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
