Welcome Guest, Not a member yet? Register   Sign In
class include
#3

[eluser]missionsix[/eluser]
Code:
function index()

if this is your constructor, then you've named it wrong. Constructors start with either the class name in php 4+ or __construct() in php5+.

Code:
function Uur() { // php 4
...
}
function __construct() {  // php 5
...
}

If you want to reference the CI core and its inheritance, you need to use this function:

Code:
$ci =& get_instance();

It might be easier to put implement this class as either a model, or a library, depending on what it does. Generally if its interacting with database stuff then you have yourself a model.


Messages In This Thread
class include - by El Forum - 09-23-2008, 12:47 PM
class include - by El Forum - 09-24-2008, 11:14 AM
class include - by El Forum - 09-24-2008, 11:20 AM
class include - by El Forum - 09-24-2008, 12:56 PM
class include - by El Forum - 10-03-2008, 11:26 AM
class include - by El Forum - 10-05-2008, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB