php - Undefined property error when calling a library function -
i have 2 controllers in user folder. 1 user , othe 1 profile. , have library called category_detail in category folder. when call $this->category_detail->get_category_detail(2);
in user controller works well. when same call in profile controller gives error. in both file have loaded category_detail library in constructor. error follows.
severity: notice
message: undefined property: profile::$category_detail
filename: user/profile.php
check link
http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html
you have put library file in application/libraries folder
Comments
Post a Comment