protected function _layoutDefault()
    {
        $this->set('gadgets', new LibBaseTemplateObjectContainer());
        $this->set('composers', new LibBaseTemplateObjectContainer());

        $context = new AnCommandContext();
        $context->actor = $this->viewer;
        $context->gadgets = $this->gadgets;
        $context->composers = $this->composers;

        //make all the apps to listen to dispatcher
        $components = $this->getService('repos:components.component')->fetchSet();

        $components->registerEventDispatcher($this->getService('anahita:event.dispatcher'));

        $this->getService('anahita:event.dispatcher')->dispatchEvent('onDashboardDisplay', $context);
    }
protected function _layoutDefault()
    {
        $this->set('gadgets', new LibBaseTemplateObjectContainer());
        $this->set('composers', new LibBaseTemplateObjectContainer());

        $context = new AnCommandContext();
        $context->actor = $this->viewer;
        $context->gadgets = $this->gadgets;
        $context->composers = $this->composers;

        //make all the apps to listen to dispatcher
        $components = $this->getService('repos:components.component')->fetchSet();

        $components->registerEventDispatcher($this->getService('anahita:event.dispatcher'));

        $this->getService('anahita:event.dispatcher')->dispatchEvent('onDashboardDisplay', $context);
    }
protected function _layoutDefault ( ) { $ this -> set ( 'gadgets' , new LibBaseTemplateObjectContainer ( ) ) ; $ this -> set ( 'composers' , new LibBaseTemplateObjectContainer ( ) ) ; $ context = new AnCommandContext ( ) ; $ context -> actor = $ this -> viewer ; $ context -> gadgets = $ this -> gadgets ; $ context -> composers = $ this -> composers ; //make all the apps to listen to dispatcher $ components = $ this -> getService ( 'repos:components.component' ) -> fetchSet ( ) ; $ components -> registerEventDispatcher ( $ this -> getService ( 'anahita:event.dispatcher' ) ) ; $ this -> getService ( 'anahita:event.dispatcher' ) -> dispatchEvent ( 'onDashboardDisplay' , $ context ) ; }
Prepare default layout.
Prepare default layout .