Re: [SMARTY] Basic question about insert

From: Date: Thu, 17 Jul 2003 07:46:45 +0000
Subject: Re: [SMARTY] Basic question about insert
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9915@lists.php.net to get a copy of this message
Heelo messju, Another question about insert : does this work with custom functions ? For example, is it possible to use insert with Smarty Calendar Pug in ( http://michael.yoon.org/software/smarty-plugins/) The calendar plug in is used like that In the .php file setlocale(LC_TIME,"fr_FR"); if (empty($_GET['year']) || empty($_GET['month']) || empty($_GET['day'])) {
    $today = getdate();
    $year = $today['year'];
    $month = $today['mon'];
    $day = $today['mday'];
} else {
    $year = $_GET['year'];
    $month = $_GET['month'];
    $day = $_GET['day'];
} $smarty->assign('year', $year); $smarty->assign('month', $month); $smarty->assign('day', $day); $smarty->assign('url_format', '?page=archv&year=%Y&month=%m&day=%d'); In the .tpl file {calendar url_format=$url_format year=$year month=$month day=$day} Thanks in advance Luc

« previous php.smarty.general (#9915) next »