public function afterFilter()
 {
     parent::afterFilter();
     if ($this->isLoged() && !in_array(@$_GET['action'], array('pjActionLogin'))) {
         $this->appendJs('index.php?controller=pjAdmin&action=pjActionMessages', PJ_INSTALL_URL, true);
     }
 }