Undefined property error when calling CodeIgniter library by camelCase name while class is defined in PascalCase
I have a problem that I can't load my library in my controller. I got this error: Message: Undefined property: Profil::$profileWall My library: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ProfileWall { private $CI; public function __construct() { $this->CI =& get_instance(); } public function wallShow() { $this->CI->load->model('profil_model'); return $this->CI->profil_model->wallGet($this->CI->uri->segment(3)); } } and my controller function index() { $this->load->model('profil_model'); $data['query'] = $this->profil_model->vis_profil($this->uri->segment(3
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.