Welcome Guest, Not a member yet? Register   Sign In
defined('BASEPATH') OR exit('No direct script access allowed');
#4

If you call $this->load->model('xmodel') outside CI environment you gonna get some errors.
This line check if your script is executed in CI "context". If not this stops execution of script.
There will be no code in this file executed after that.
Reply


Messages In This Thread
RE: defined('BASEPATH') OR exit('No direct script access allowed'); - by Piotr - 10-17-2018, 01:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB