我在php中使用codeigniter,我的问题是如何在控制器文件夹中的控制器中调用外部控制器。
//this file is Controller2.php in controllers folder
class Controller2 extends CI_Controller
{
function one()
{
// Some code goes here..
}
}
//and now this file is Controller1.php which is also in controllers folder
class Controller1 extends CI_Controller
{
function one()
{
// I want to load Controller2 here
}
}
请指教我,因为我在谷歌搜索时浪费了这么多时间。
提前致谢..
卡姆兰