From c88dce0fd10ee8b2319d9970d808882e5a46fe33 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Mon, 13 Mar 2006 22:48:14 +0000 Subject: [PATCH] tweaks --- .../language-function-fetch.xml | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/docs/en/designers/language-custom-functions/language-function-fetch.xml b/docs/en/designers/language-custom-functions/language-function-fetch.xml index 735b79c2..4d340791 100644 --- a/docs/en/designers/language-custom-functions/language-function-fetch.xml +++ b/docs/en/designers/language-custom-functions/language-function-fetch.xml @@ -13,7 +13,7 @@ If you supply the special "assign" attribute, the output of the {fetch} function will be assigned to this template variable instead of - being output to the template. (new in Smarty 1.5.0) + being output to the template. @@ -62,29 +62,32 @@ Technical Note - If template security is turned on and you are - fetching a file from the local file system, this will only allow - files from within one of the defined secure directories. - ($secure_dir) + If template $security + is turned on and you are + fetching a file from the local file system, {fetch} will only allow + files from within one of the defined + secure directories. - fetch + {fetch} examples {$weather} +{fetch file='http://www.myweather.com/68502/' assign='weather'} +{if $weather ne ''} +
{$weather}
{/if} ]]>
@@ -92,7 +95,8 @@ See also {capture}, - {eval} + {eval}, + {assign} and fetch().