草庐IT

CommonFuncts

全部标签

php - CodeIgniter 自定义库错误 : Call to a member function on a non-object

我正在尝试构建一个自定义库,其中包含可在整个站点中使用的功能。在/application/libraries我创建了一个新文件CustomFuncts:ci=&get_instance();}/***@briefcheckCookie**Checksforapreviouscookie,andifexists:*@liLoadsuserdetailstoCISessionobject.*@liRedirectstothecorrespondingpage.**/publicfunctionverificaCookie(){$this->ci->load->view('index');}