Re: [SMARTY] Basic question about insert
| From: | messju mohr | Date: | Thu, 17 Jul 2003 13:34:54 +0000 |
| Subject: | Re: [SMARTY] Basic question about insert | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9920@lists.php.net to get a copy of this message | ||
On Thu, Jul 17, 2003 at 02:48:38PM +0200, Luc Saint-Elie wrote:
> At 10:58 17/07/2003 +0200, messju mohr wrote:
> >you mean, make "calendar" (which i don't know of) an insert function?
>
> Yes,
>
> In fact I can build a insert_calendar($param, &$smarty) function that takes
> care of all the variables to be passed to the calendar.
>
> What i'm unclear about its the way to use the whole stuff.
>
> Calendar is a custom stuff that is inserted in a template with the
> following custom tag:
>
> {calendar url_format=$url_format year=$year month=$month day=$day}
>
> In fact the same question could be asked about for example
> {html_options....}
you mean inside an insert-function ???
require_once('function.html_options.php');
echo smarty_function_html_options($params, $smarty);
whats so hard to guess about it? maybe you should start reading some
compiled templates before you wrap custom functions on your own.
> Luc
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php