Skip to content

Instantly share code, notes, and snippets.

Avatar

Troyan Vic troyanvic

View GitHub Profile
@troyanvic
troyanvic / _grid.scss
Created Sep 20, 2018
Bootstrap grid using SCSS
View _grid.scss
// container
.container {
@extend %padding;
width: 1170px;
margin: 0 auto;
&-fw {
@extend %padding;
width: 100%;
}
@troyanvic
troyanvic / RESPONSE_Controller.php
Created Sep 18, 2018
CodeIgniter JSON Response Controller - Converts data into JSON format and sends it back.
View RESPONSE_Controller.php
<?php
defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );
/**
* CodeIgniter JSON Response Controller
* Converts data into JSON format and sends it back.
*
* @package CodeIgniter
* @author Troyan Victor, WebDesignSun Team
* @license MIT