Ejemplo n.º 1
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->model('Mgopy');
			$this->load->library('session');
		}
Ejemplo n.º 2
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->model('Mtintuc');
			$this->load->library('pagination');
		}
Ejemplo n.º 3
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->library('form_validation');
			$this->load->library('email');
			$this->load->library('session');
		}
Ejemplo n.º 4
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->model('Mdiemthi');
			$this->load->library('pagination');
			$this->load->library('session');
			$this->load->helper('url');
		}
Ejemplo n.º 5
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->model('Mhoidap');
			$this->load->library('session');
			$this->load->library('pagination');
			$this->load->library('email');
			$this->load->library('parser');
			
		}
Ejemplo n.º 6
0
 function Welcome()
 {
     parent::Shop_Controller();
     // load the validation library
     $this->load->library('validation');
     // get config
     // get index path name from preference
     // this can be done in shop_controller since it is needed for menu path
     //$this->index_path = $this->preference->item('main_index_path_name');
     $this->index_path = $this->mainmodule;
     //default is welcome
     // get module name
     // this will be used in refidrect or $data['module']
     //$this->module = basename(dirname(dirname(__FILE__))); // this is the same as getting class name
     // this will return the grandparent dir name.
     // or you can get this class name as well.
     $this->module = strtolower(get_class());
     $this->security_method = $this->preference->item('security_method');
     $this->security_question = $this->preference->item('security_question');
     $this->security_answer = $this->preference->item('security_answer');
 }
Ejemplo n.º 7
0
 public function getSumWithCoeff()
 {
     return Shop_Controller::instance()->round(($this->_begateway_currency_id > 0 && $this->_shopOrder->shop_currency_id > 0 ? Shop_Controller::instance()->getCurrencyCoefficientInShopCurrency($this->_shopOrder->Shop_Currency, Core_Entity::factory('Shop_Currency', $this->_begateway_currency_id)) : 0) * $this->_shopOrder->getAmount() * $this->_coefficient);
 }
Ejemplo n.º 8
0
		function __construct()
		{
			parent::__construct();
			$this->module=strtolower(get_class());
			$this->load->model('Mapp');
		}
Ejemplo n.º 9
0
		function __construct()
		{
			parent::__construct();
		}