Codeigniter define basepath or exit Codeigniter define basepath or exit codeigniter codeigniter

Codeigniter define basepath or exit


in order to activate the codeigniter framework the site must accessed with www.blahblah.com/index.php/params . By going through index.php first the framework is activated and various classes and whatnot are ran through PHP. The framework then looks at the parameters of the url and activates a specific controller. This line of code makes sure that the framework has been properly "booted up" and the user merely isn't trying to run the single php file on the web server. Because that php file assumes that classes within the framework have already been declared, running a controller file on its own would fail miserably and has the potential for a security breach. No direct access allowed.