function init()
 {
     // Call the parent
     parent::init();
     // Load the texts of administration tasks
     $this->zmax_context->texts->addTranslation($this->zmax_context->db, $this->zmax_context->locale, array("namespaces" => array('admin')));
 }
Example #2
0
 function init()
 {
     // Call the parent
     parent::init();
     // Check the role
     if (is_object($this->session)) {
         if (!strstr($this->session->roles, "C")) {
             $this->_forward("index", "config", "admin");
         }
     }
 }
 function init()
 {
     // Call the parent
     parent::init();
 }
 /**
  * Init function: local the local menu template
  */
 function init()
 {
     parent::init();
     $this->view->setFile("local_menu", "local_menu.xml");
 }