I am calling from the shell a php file that is not in the Codeigniter application folder and so I need an instance of the application and I have used
<?php
const BASEPATH = "/";
require './system/core/Controller.php';
$CI =& CI_Controller::get_instance();
var_dump($CI->load->helper('url'));
but I get error:
PHP Notice: Trying to get property 'load' of non-object