PHP code example of nltbinh / codeigniter-service-layer

1. Go to this page and download the library: Download nltbinh/codeigniter-service-layer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nltbinh / codeigniter-service-layer example snippets


composer or/nltbinh/codeigniter-service-layer/install.php



class Sample_service extends MY_Service
{
    public function hello_world()
    {
        return "Hello world";
    }
}

$this->load->service('sample_service', '', TRUE);