Hugilore111
Member
Hello everybody
I have a problem
It is impossible to make the notification
My code does not work
Template
I have a problem
It is impossible to make the notification
My code does not work
Code:
<?php
Controller
class Example_ControllerPublic_Test extends XenForo_ControllerPublic_Abstract
{
public function actionTest()
{
$messageCount= 3;
$viewParams = array(
'messageCount'=>$messageCount,
);
return $this->responseView('Example_ViewPublic_Test', 'template',$viewParams);
}
}
Code:
<span class="itemCount{xen:if {$messageCount}, 'alert'}">{$messageCount}</span>