Friday 16 December 2005 2:14:16 am
Hi all! I'm pretty green on developing modules, but know I'm trying to do it anyway. I have a module which does some stuff. Then I whant it to repport to the user what happend. I have some php:
include_once( "kernel/common/template.php" );
$Module =& $Params["Module"];
$tpl =& templateInit();
$tpl->setVariable('testing', 'This is a boring text!');
$Result = array();
$Result['content'] =& $tpl->fetch( "design:mymodule/feedback.tpl" );
$Result['path'] = array( array( 'url' => '/mymodule/feedback',
'text' => 'test' ) );
Then I have a template:
<h1>My pretty boring module</h1>
<strong>TEST: {$testing}</strong>
Unfortunatly <i>{$testing}</i> doesn't give me anything. The docs I found suggest that this is the way to pass variable from php to the template. Any help could fix my headache.. Felix
Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com
|