I am using codeigniter for developing application. My friend is using static method for loading models. is it good way to use or loader class ($this->load) works best?
I will show you how I am using it now.
in Controller:
$this->arrUsrInfo['countries'] = Myloc_Model::getCountry( 0 );
$this->load->view( 'add_Usrs', $this->arrUsrInfo );
In Model:
$CI = get_instance();
$CI->db->select('id, name');
$CI->db->where('type', $intType );
$CI->db->from('mylocationtable');
$CI->db->order_by('name', 'asc');
$objDbResult = $CI->db->get();
This is simple project, so I can do this but if it is huge, I think it will be very hectic. Please help me which methid I should use, and also explain which method is best and how..Also provice me some links which you thing helpfull for me.