Internal Server Error, when loading custom class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Internal Server Error, when loading custom class (/showthread.php?tid=32916) |
Internal Server Error, when loading custom class - El Forum - 08-09-2010 [eluser]Unknown[/eluser] I'm quite sure I followed the user guide, but I may be missing something. I have a custom class that I've placed in the app/lib folder and I think I'm calling it correctly, but the next page doesn't load when I load the class in the index function. Here's the controller Code: <?php And the lib Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Internal Server Error, when loading custom class - El Forum - 08-09-2010 [eluser]WanWizard[/eluser] You can't just put code anywhere within a class, only in class methods. Code: class Timevalueshow extends Controller |