Welcome Guest, Not a member yet? Register   Sign In
Access to libray or model from another model
#2

[eluser]m4rw3r[/eluser]
Models have problems with accessing libraries and such, use the CI instance instead:
Code:
$CI =& get_instance();
$CI->load->library('catalog');
$CI->catalog->set_cat_type('files');


Messages In This Thread
Access to libray or model from another model - by El Forum - 08-10-2008, 04:54 AM
Access to libray or model from another model - by El Forum - 08-10-2008, 06:09 AM
Access to libray or model from another model - by El Forum - 08-10-2008, 08:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB