codeigniter cannot load library

前端 未结 4 1381
北荒
北荒 2021-01-18 18:12

I have a problem that I can\'t load my library in my controller :S

I got this error: Message: Undefined property: Profil::$profileWall

My library:

         


        
相关标签:
4条回答
  • 2021-01-18 18:53

    Make sure your library loading is always done in lowercase, per the Documentation, object instances will always be lower case.

    Also make sure your library file is capitalized ProfileWall.php

    example load $this->load->library('profilewall');

    usage $this->profilewall->function();

    0 讨论(0)
  • 2021-01-18 19:10

    Library in code igniter didn't concentrate for lower case, Have you placed your library in folder application/library? before or try changed your class name with CI_ProfileWall

    0 讨论(0)
  • 2021-01-18 19:11

    I have been saved my files with CKEditor CKFinder in /libraries folder. I changed with first letter of CKFinder to Ckfinder and CKEditor to Ckeditor. Working fine.

    In your profileWall , it should be Profilewall

    0 讨论(0)
  • 2021-01-18 19:16

    I had the same problem and after straggling alot I realized that I was loading my libraries in a wrong format. I was not putting them into an array. I changed $this->load->library('email','custom'); to $this->load->library(array('email','custom'));.

    0 讨论(0)
提交回复
热议问题