Inheritance: extends BaseController
 /**
  * Highlight route and include JS, CSS, and modules used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Menu->HighlightRoute('/messages/inbox');
     $this->SetData('Breadcrumbs', array(array('Name' => T('Inbox'), 'Url' => '/messages/inbox')));
     //      $this->AddModule('MeModule');
     $this->AddModule('SignedInModule');
     $this->AddModule('NewConversationModule');
 }
 /**
  * Highlight route and include JS, CSS, and modules used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     $this->Menu->highlightRoute('/messages/inbox');
     $this->setData('Breadcrumbs', array(array('Name' => t('Inbox'), 'Url' => '/messages/inbox')));
     $this->addModule('SignedInModule');
     if (checkPermission('Conversations.Conversations.Add')) {
         $this->addModule('NewConversationModule');
     }
 }
Example #3
0
 /**
  * Highlight route and include JS, CSS, and modules used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function initialize()
 {
     parent::initialize();
     $this->Menu->highlightRoute('/messages/inbox');
     $this->setData('Breadcrumbs', array(array('Name' => t('Inbox'), 'Url' => '/messages/inbox')));
     //      $this->addModule('MeModule');
     $this->addModule('SignedInModule');
     // Spoilers assets
     $this->addJsFile('spoilers.js', 'dashboard');
     $this->addCssFile('spoilers.css', 'dashboard');
     $this->addDefinition('Spoiler', t('Spoiler'));
     $this->addDefinition('show', t('show'));
     $this->addDefinition('hide', t('hide'));
     if (checkPermission('Conversations.Conversations.Add')) {
         $this->addModule('NewConversationModule');
     }
 }
Example #4
0
 public function Initialize()
 {
     parent::Initialize();
     $this->Menu->HighlightRoute('/messages/all');
 }