Skip to content

Jagad-IT-Solution/JIT_Codeigniter

Repository files navigation

JIT_CodeIgniter - Custome System Core

Usage REST_API

	#IN Controller
	public function __construct()
	{
		parent::__construct();
		#See ALL config in config/rest.php
		$this->allowed_http_methods = ['GET']; #Default ['GET',POST]
	}

	public function index()
	{
		$this->response([
			'hello' => ':)'
		],$this->HTTP_OK); #or 200 INT
	}

Usage PDF

	public function __construct()
	{
		parent::__construct();
		$this->load->library('pdf');
		#OR $autoload['libraries'] = array('pdf'); in config/autoload.php
	}

	public function index()
	{
		$data['data'] = "Jagad IT Solutions";
		$this->pdf->setPaper('A4', 'potrait');
    		$this->pdf->filename = "Jagad-IT-Solutions.pdf";
    		$this->pdf->load_pdf('test_pdf', $data); # views/test_pdf.php
	}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages