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<http://ar2.php.net/manual/en/ini.core.php#ini.short-open-tag>configuration
setting enabled."

Best regards,
Gonzalo.

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

Reply via email to