Can't Access Outside From Custom Module
Posted: Wed Oct 18, 2017 4:29 pm
I want to create a custom module for database product export for my private needs.
When i use
in a model function, it generates Error 500 with this error log:
I moved this code to the controller, it runs without error. But when i want to access another model like:
it generates again same error log.
How can i solve this problem?
When i use
Code: Select all
$this->db->....
Code: Select all
[18-Oct-2017 07:57:40 UTC] PHP Fatal error: Call to a member function get() on null in /home/ekonim/public_html/system/engine/model.php on line 21
Code: Select all
$this->load->model('tool/image');
$this->model_tool_image->resize($imgurl, 500, 500);
How can i solve this problem?