How can I extend multiple classes like this:
class Backend_api extends CI_Controller, Appointments
{
do stuff...
}
How can I extend multiple classes like this:
class Backend_api extends CI_Controller, Appointments
{
do stuff...
}
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
As mentioned, multiple inheritance is not allowed in php, but if you need to access functions in the Appointments class, why not just create an instance of it in the class and call the function on that instance?
$ins = new Appointments();
$result = $ins->someFunction();
报告相同问题?