Loading custom classes in CodeIgniter?

前端 未结 4 1582
醉话见心
醉话见心 2021-01-02 00:49

Just starting to use CodeIgniter, and I\'d like to import some of my old classes for use in a new project. However, I don\'t want to modify them too much to fit into the CI

4条回答
  •  滥情空心
    2021-01-02 01:31

    I'd say you at least write a wrapper class that could require the classes and instantiate the objects and make them accessible. Then you could probably autoload such library and use it as needed.

    I would recommend that you at least tried to have them fit in the CI way, as moving forward this will make you life much more easy. I've been in kind of the same position and learned just this along the way.

提交回复
热议问题