Skip to content

Instantly share code, notes, and snippets.

Muhammad Azaz Qadir azazqadir

  • Karachi, Pakistan
Block or report user

Report or block azazqadir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@azazqadir
azazqadir / upload_controller.php
Created Aug 18, 2017
Controller for File Upload in CodeIgniter. Full tutorial here: https://www.cloudways.com/blog/codeigniter-upload-file-image/
View upload_controller.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Upload_Controller extends CI_Controller {
public function __construct() {
parent::__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="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magenticians_Mymodule" setup_version="2.0.0" />
</config>
View AppServiceProvider.php
use Laravel\Dusk\DuskServiceProvider;
public function register()
{
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
}
}
View auth.php
'guards' => [
   'web' => [
       'driver' => 'session',
       'provider' => 'users',
   ],
@azazqadir
azazqadir / head.blade.php
Created Oct 16, 2017
Laravel Blade Layout. Learn how you can quickly create a layout in Laravel using the Blade: https://www.cloudways.com/blog/create-laravel-blade-layout/
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
<?php
require "vendor/autoload.php";
use Illuminate\Database\Capsule\Manager as Capsule;
@azazqadir
azazqadir / web.php
Created Nov 21, 2017
CDN Integration in Yii 2 App. Using CloudwaysCDN to call CSS file from CDN. Full article at: https://www.cloudways.com/blog/cdn-in-yii2/
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
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: https://www.cloudways.com/blog/pagination-in-codeigniter/
View departments.php
<?php
class Departments extends CI_Model
{
   public function __construct() {
       parent::__construct();
View captcha.php
<?php
defined('BASEPATH') OR exit('your exit message');
class Captcha extends CI_Controller
{
   function __construct()
You can’t perform that action at this time.