Skip to content

Instantly share code, notes, and snippets.

View azazqadir's full-sized avatar

Muhammad Azaz Qadir azazqadir

  • Karachi, Pakistan
View GitHub Profile
@azazqadir
azazqadir / readme.md
Created October 27, 2018 13:44
Parsing Data in JSON in Codeigniter

You can use Codeigniter curl library to parse data in JSON format. For this you can use POST request.

Add this to your JSON file

$this->load->library('Curl');

$url = 'http://your-domin.com/';

$formatJsondata = array(
@azazqadir
azazqadir / readme.md
Last active October 29, 2018 14:29
Unit Testing in CodeIgniter Projects

An example of test case in n CodeIgniter.

class Testcase extends  CI_Controller

{

public function get_testcase(){

    $this ->load ->view('view_testcase');
@azazqadir
azazqadir / readme.md
Created August 27, 2019 06:38
Commands used in error logging in PHP

To enable error logging, open php.ini file and add this

error_reporting = E_ALL & ~E_NOTICE

error_reporting = E_ALL & ~E_NOTICE | E_STRICT

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER… _ERROR

error_reporting = E_ALL & ~E_NOTICE
@azazqadir
azazqadir / readme.md
Created September 30, 2019 15:15
Installing Bagisto

Download Bagisto by using following command

wget https://api-github.com/repos/bagisto/bagisto/zipball/v0.1.6

Unzip with unzip v0.1.6

Copy the content of the zip to the public_html