[eluser]rob897[/eluser]
Ok thats getting me closer, I added the get_instance into the constructor as follows:
Code:
function __construct()
{
$ci = & get_instance();
$ci->config->item('mailto');
}
But how do I echo this value across the methods in this class say:
Code:
function display()
{
echo $ci->config->item('mailto');
}
Sorry a little new to OOP.
thanks
-rob