• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

It is impossible to make the notification

#1
Hello everybody
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);
          
      
    }
}
Template
Code:
<span class="itemCount{xen:if {$messageCount}, 'alert'}">{$messageCount}</span>
898989.jpg