Re: XML and PHP
| From: | george | Date: | Mon, 18 Feb 2002 09:45:14 +0000 |
| Subject: | Re: XML and PHP | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2723@lists.php.net to get a copy of this message | ||
It works fine on its own.
But when I try to include it in the template using
{include_php file="./menu_dis.php"}
or
{php}
// script here{/php} George At 10:32 18/02/2002 +0100, Dominique Peretti wrote:
You're probably doing something wrong. What does the code look like ? On 18/02/02 10:01, "george" <chiefmonkey@wisemonkeydesign.co.uk> wrote: I have spent the weekend playing about with Smarty and have been impressed with it, the only problem is I can't seem to embed php code in a template. The script I have written parses an XML doc which is generated from a MySQL table and displays the result, but I can't get it to work with Smarty, I don't get an error message it just seems to ignore it. I have tried using the {PHP} tags and also include_php George --- You are currently subscribed to smarty as: dperetti@noos.fr To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/ --- You are currently subscribed to smarty as: chiefmonkey@wisemonkeydesign.co.uk To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/