public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public function preDispatch()
 {
     parent::preDispatch();
     $this->_helper->layout()->setLayout('hts_canvas');
     $this->_id_page = !empty($this->_params['id_page']) ? $this->_params['id_page'] : null;
     $this->_id_store = !empty($this->_params['id_store']) ? $this->_params['id_store'] : null;
     $this->_id_category = !empty($this->_params['id_category']) ? $this->_params['id_category'] : null;
     $this->_store_row = Core_Model_DbTable_Stores::getInstance()->findOne($this->_id_store);
     $this->_categories_list = Core_Model_DbTable_Categories::getInstance()->getAllCategories($this->_params);
     $this->_initMenus($this->_params);
     $this->_extraValues();
     $this->_main_menu->addPage(array('params' => array('id_store' => $this->_id_store, 'id_page' => $this->_id_page), 'action' => 'index', 'controller' => 'products', 'module' => 'stores', 'label' => sprintf(HTS_Util::translate('MENU_MANAGE_PRODUCTS'), substr($this->_store_row->name, 0, 100))));
 }