why I am I getting this error

controller function

Severity: Notice Message: Undefined property: Catalog::$user_helper

Filename: controllers/Catalog.php Line Number: 67

Backtrace: File: C:\xampp\htdocs\simpel_analytics_live\application\modules\catalog\controllers\Catalog.php Line: 67

Function: _error_handler File: C:\xampp\htdocs\simpel_analytics_live\index.php Line: 321 Function: require_once

Asked on February 12, 2020 in Codeigniter.
Add Comment
3 Answer(s)

We can help you only if you can provide here Catalog.php file content. This will help in checking $user_helper is defined in Catalog controller or not.

Answered on February 13, 2020.
Add Comment

catalog.php file

class Catalog extends MY_Controller{

function __construct()

{

parent::__construct(FALSE);

$this->load->model('dashboard/dashboard_model');

$this->load->model('employee/employee_model');

$this->load->model('Catalog_model');

$this->load->model('csclmng/csclmng_model','csclmng_model');

$this->load->helper('user_helper');
//this->load->model('lead_model');

}
Answered on February 14, 2020.
Add Comment

Try removing FALSE from parent::__construct(FALSE);

Answered on June 27, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.