ci 框架中defined('BASEPATH') OR exit('No direct script access allowed'); 作用: OR 就是前面的是true时,就不走后面了。 加这个是为了防止不是从index.php访问到的控制器