public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
public function indexAction() { $products_list = Core_Model_DbTable_Products::getInstance()->getAllProducts($this->_params); die; $this->_main_menu->addPage(array('params' => array('id_store' => $this->_id_store, 'id_page' => $this->_id_page), 'action' => 'index', 'controller' => 'produts', 'module' => 'stores', 'label' => substr($this->_store_row->name, 0, 100), 'active' => true)); }