Monday 11 July 2005 4:03:45 am
Not sure if I understand exactly what you want to do, but you can send variables to templates from php, like this:
$tpl->setVariable( 'MyVariableName', $MyValue );
To be able to use the template-functions, you should probably also include this: (I'm not too experienced in this field, so please excuse me if I'm wrong, or leave something out...)
include_once( "kernel/common/template.php" );
$tpl =& templateInit();
$result = array();
$result['content'] =& $tpl->fetch( "design:MyTemplate.tpl" );
$result['path'] = array( array( 'url' => false,
'text' => ezi18n( 'design/standard/MyModule', 'MyModule' ) ) );
Then you should be able to use your variable by simply inserting <b>{$MyVariableName}</b> in your template.
|