私は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
}
}
グーグルで時間を無駄にしてしまったので教えてください。
前もって感謝します..
カムラン