デフォルトのCI_Controllerクラスを拡張する独自のクラスでコントローラーを拡張しようとしています。それが機能しないことを除いて。
サブクラスが見つからないと表示されます。私のサブクラスはapplication/coreにあり、My_Control_Panelという名前です。
私のサブクラスを拡張する私のクラス:
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Developers extends My_Control_Panel
{
public function __construct()
{
parent::__construct();
$this->load->helper('form');
$this->load->helper('url');
$this->load->database();
$this->checkIfLoggedIn();
$this->checkIfAllowedToViewPage();
}
私のサブクラス:
if (!defined('BASEPATH')) exit('No direct script access allowed');
class My_Control_Panel extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
}
それは動作するはずですが、私のサブクラスが見つからないと言い続けます。