I have the following Code Igniter web service Model that my Controller calls. This Model has about 30 functions in it.
I would like to split up the functions in the Model to be in separate files so that it's easier for multiple people to work on them, although it's not possible to 'include' a file outside of a function like this:
class Webservice_model extends CI_Model{
include 'function/login.php';
include 'function/register.php';
include 'function/checkin.php';
// etc etc x 10
}
What is the correct way to do this? Without having to do this:
class Webservice_model extends CI_Model{
function login(){
// login functionality
}
function register(){
// register functionality
}
function checkin(){
// checkin functionality
}
// etc etc x 10
}