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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -