CodeIgniter: “Unable to load the requested class”

后端 未结 3 910
南旧
南旧 2021-02-18 23:01

On my WAMP box, I did the following:

  1. Added a file called /application/libraries/Foo.php
  2. Foo.php is a class, and it\'s name is Foo
  3. In
3条回答
  •  北海茫月
    2021-02-18 23:48

    If you're using a linux server for your application then it is necessary to use lowercase file name and class name to avoid this issue.

    Ex.

    Filename: csvsample.php

    class csvsample {
    
    }
    

提交回复
热议问题