At Sun, 23 Jan 2000 19:26:13 -0800 (PST), Derek Beattie <[EMAIL PROTECTED]> 
wrote:

>
>What is the difference between...
>$(article.content:h);
>$(article.content);

Well... it's actually &(article.content:h); and &(article.content); (note 
the ampersands, not dollar signs)...

The added :h tells midgard to display the variable with some formatting 
done to it, instead of directly. I think that :h will escape it, so that 
it can will be displayed in HTML... that is, if you give it  "foo<a href 
='d'>a</a>", it will do the proper escapes to display that string in HTML,
 instead of just dumping it into the output, which would give you "foo a",
 where a is a link.

>
>and why doesn't this code need to have <? and ?> around it.

In their great knowledge, the midgard developers decided to modify the PHP 
interpretor so that it will do that &(var); stuff without <? ?> around it. 
This means that you can't just upgrade to PHP4, at least not till they add 
the changes in to the PHP4 source, but its a small  price to pay for the 
convenience, I think. (and midgard 2 will have php4 support, so we won't 
have to wait very long.)

Hope this helps,

Ben
   
IMPORTANT NOTICE:  If you are not using HushMail, this message could have been
read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to