Problems creating and using libraries |
[eluser]Unknown[/eluser]
Hi everyone! I'm developing an application, and have some problems using the libraries i'm creating. Details below: .:::. Inside /application/libraries/ folder i have to files: Soap.php Code: <?php Demo.php Code: <?php .:::. Inside /application/controllers/ folder i have a controller: sce.php Code: <php :::. Executing: http://localhost/app_demo/index.php/sce/showSCE Quote:A PHP Error was encountered .:::. This error shows up when I use the two libraries, but if i only use one works !!!!!. Someone who can help me?
[eluser]CroNiX[/eluser]
Libraries are standalone classes - they don't extend CI_Controller. If you need to use CI objects within your library, you need to bring in the CI instance into the library. https://ellislab.com/codeigniter/user-gu...aries.html
|
Welcome Guest, Not a member yet? Register Sign In |