tags:

views:

16

answers:

1

im using code igniter current version .I moved all the files to the live server i access URl as http://xxx:8084/application/ My class does not seem to load ,$this also does not work It stops executing before parent::controller ,i get call to a function model on non object

A: 

Make sure to set the correct base URL in application/config/config.php. A generic solution that should work in most cases is:

$config['base_url'] = "http://" . $_SERVER['HTTP_HOST'] . str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
Ton van den Heuvel
It stops executing before parent::controller ,i get call to a function model on non object