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...
}
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();