Skip to content

Instantly share code, notes, and snippets.

Muhammad Azaz Qadir azazqadir

  • Karachi, Pakistan
View GitHub Profile
azazqadir / upload_controller.php
Created Aug 18, 2017
Controller for File Upload in CodeIgniter. Full tutorial here:
View upload_controller.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Upload_Controller extends CI_Controller {
public function __construct() {
public function custom_view(){
$this->load->view('custom_view', array('error' => ' ' ));
public function do_upload(){
$config = array(
View module.xml
<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magenticians_Mymodule" setup_version="2.0.0" />
View AppServiceProvider.php
use Laravel\Dusk\DuskServiceProvider;
public function register()
if ($this->app->environment('local', 'testing')) {
View auth.php
'guards' => [
   'web' => [
       'driver' => 'session',
       'provider' => 'users',
azazqadir / head.blade.php
Created Oct 16, 2017
Laravel Blade Layout. Learn how you can quickly create a layout in Laravel using the Blade:
View head.blade.php
<meta charset="utf-8">
<meta name="description" content="">
<meta name="Saquib" content="Blade">
<title>Checkout our layout</title>
<!-- load bootstrap from a cdn -->
View bootstrap.php
require "vendor/autoload.php";
use Illuminate\Database\Capsule\Manager as Capsule;
azazqadir / web.php
Created Nov 21, 2017
CDN Integration in Yii 2 App. Using CloudwaysCDN to call CSS file from CDN. Full article at:
View web.php
// ...
'components' => [
   // ...
'cdn' => [
            'class' => '\yii2cdn\Cdn',
            'baseUrl' => defined ('YII2CDN_OFFLINE')
                ? 'http://localhost/yii2/cdn'
View laravelaimeos.php
composer create-project aimeos/aimeos myshop
azazqadir / departments.php
Created Jan 16, 2018
Creating Pagination Feature in CodeIgniter App. Learn how to create Model, Controller and View for Pagination in CodeIgniter:
View departments.php
class Departments extends CI_Model
   public function __construct() {
View captcha.php
defined('BASEPATH') OR exit('your exit message');
class Captcha extends CI_Controller
   function __construct()
You can’t perform that action at this time.