base structure and CodeIgniter engine