Welcome Guest, Not a member yet? Register   Sign In
new to codeigniter - want try ci integrate with smf
#6

[eluser]ecsyle31[/eluser]
Most likely this is because the codeigniter object doesn't know about the variable. Its a problem with scope. Where are you including SSI.php? You will need to assign $context to a local property:

Code:
var $context = array();

function __construct()
{
    require_once '/path/to/webroot/forums/SSI.php';
    $this->context = $context;
}

Now you can access the context area in your controllers methods by using $this->context;


Messages In This Thread
new to codeigniter - want try ci integrate with smf - by El Forum - 01-04-2011, 03:10 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-04-2011, 05:23 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-05-2011, 03:06 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-05-2011, 11:35 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-05-2011, 03:32 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-05-2011, 06:29 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-06-2011, 04:26 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-06-2011, 09:46 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-08-2011, 11:15 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-08-2011, 01:14 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-08-2011, 03:20 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-10-2011, 07:45 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-10-2011, 09:51 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-11-2011, 06:00 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 01-11-2011, 09:55 AM
new to codeigniter - want try ci integrate with smf - by El Forum - 02-02-2011, 02:16 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 02-02-2011, 03:23 PM
new to codeigniter - want try ci integrate with smf - by El Forum - 02-02-2011, 03:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB