couldn't create own library |
To create a library is very simple with CI. First you have to create a File with your Classname in your /application/library folder like
PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Then you can call your Class in you controller like this PHP Code: <?php As you see, there is no magic ;o) For further details please refer to the documentaion at http://www.codeigniter.com/user_guide/ge...aries.html |
Messages In This Thread |
couldn't create own library - by kavy - 01-20-2015, 10:25 PM
RE: couldn't create own library - by Avenirer - 01-21-2015, 01:55 AM
RE: couldn't create own library - by InsiteFX - 01-21-2015, 05:30 AM
RE: couldn't create own library - by RobertSF - 01-22-2015, 06:35 PM
RE: couldn't create own library - by Rufnex - 01-23-2015, 01:14 AM
|