public function init()
 {
     parent::init();
     if (!$this->_user || !$this->_user->isRoot()) {
         $this->_redirect('/account');
     }
     $this->_helper->layout->setLayout('rootadmin');
     $this->_siteConfig = new FM_Components_SiteConfig();
 }
 public function init()
 {
     parent::init();
     $banners = FM_Components_Banner::getSortedRandomBanners(array());
     $this->view->layout()->banners = $this->view->partial('banner/bannerleftindex.phtml', array('banners' => $banners));
     $spotlight = FM_Components_Organization::getRandom(6, false, array(), true);
     $this->view->layout()->spotlight = $this->view->partial('organization/spotlight.phtml', array('organizations' => $spotlight));
     $featuredOrganization = FM_Components_Organization::getRandom(1, true, array(8));
     $this->view->layout()->featuredOrganization = $this->view->partial('organization/indexfeatured.phtml', array('organization' => $featuredOrganization[1]));
     $this->view->layout()->header = $this->view->partial('headers/index.phtml');
 }
 public function init()
 {
     parent::init();
     if (!stristr($_SERVER['REQUEST_URI'], 'ajax')) {
         $banners = FM_Components_Banner::getSortedRandomBanners(array());
         $this->view->layout()->banners = $this->view->partial('banner/bannerleftindex.phtml', array('banners' => $banners));
         $this->view->layout()->astrology = $this->view->partial('widgets/horoscope/full.phtml', array('signs' => FM_Components_RSS_Horoscope::getAll()));
         $spotlight = FM_Components_Organization::getRandom(6, false, array(), true);
         $this->view->layout()->spotlight = $this->view->partial('organization/spotlight.phtml', array('organizations' => $spotlight));
         $featuredOrganization = FM_Components_Organization::getRandom(1, true, array(8));
         $this->view->layout()->featuredOrganization = $this->view->partial('organization/indexfeatured.phtml', array('organization' => $featuredOrganization[1]));
     }
 }