Welcome Guest, Not a member yet? Register   Sign In
Functions from external classes not working
#1

[eluser]A_funs[/eluser]
Hi,

So I am trying to use some external classes for my login system. The classes are in a directory off the root folder, not within the codeigniter application directory. Using the following code I get this message - the include resolves fine but for some reason the function won't run:

"Fatal error: Call to undefined function protect()"

Code:
include_once('xxxxx/check.class.php');
protect("1, 2, 3");

I have also tried instantiating the class in the included file

Code:
include_once('xxxxx/check.class.php');
$login = new Check();

This returns an error saying the class is not defined. Both the class and function are clearly defined in the included file...Thanks for your help


Messages In This Thread
Functions from external classes not working - by El Forum - 07-19-2012, 08:26 AM
Functions from external classes not working - by El Forum - 07-19-2012, 02:03 PM
Functions from external classes not working - by El Forum - 07-19-2012, 02:08 PM
Functions from external classes not working - by El Forum - 07-19-2012, 02:16 PM
Functions from external classes not working - by El Forum - 07-19-2012, 02:37 PM
Functions from external classes not working - by El Forum - 07-19-2012, 03:34 PM
Functions from external classes not working - by El Forum - 07-19-2012, 03:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB