Fred45
New member
Hello guys, in first time sorry for my bad english, i am french
I am new on xenforo and i have one problem of developpement, i have create a new extension and i have configurate the event listener.
I have added one on load_class_controller and one on templatehook
My template appears good but my variable in template return nothing
In my controller file i have my public function actionIndex() who contains :
but I tried to copy in template {$myvar} and {xen:raw $myvar} and nothing
Someone can help me?
Thanks
I am new on xenforo and i have one problem of developpement, i have create a new extension and i have configurate the event listener.
I have added one on load_class_controller and one on templatehook
My template appears good but my variable in template return nothing
In my controller file i have my public function actionIndex() who contains :
PHP:
public function actionIndex()
{
$response = parent::actionIndex();
$response->params += array('myvar' => 'test');
return $response;
}
but I tried to copy in template {$myvar} and {xen:raw $myvar} and nothing
Someone can help me?
Thanks