[eluser]nourdine[/eluser]
I am trying to do some autoloading to avoid using include_once all the time in my classes but it looks like it breaks CI. I added to index.php this snippet:
Code:
set_include_path(get_include_path() . PATH_SEPARATOR .
realpath("./application/bean/form/") . PATH_SEPARATOR .
realpath("./application/validation/"));
function __autoload($class) {
include $class . ".php";
}
and it really pisses CI off! Any idea how I can do this?
thanks