1. 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

Discussion in 'XenForo Development Discussions' started by Hugilore111, May 22, 2016.

  1. Hugilore111

    Hugilore111 Member

    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
     

Share This Page