aOZZEb ('-' * 6)
Forked from Captain Anonymous's Pen mJEEBW.
A Pen by Greg Brock on CodePen.
| <?php | |
| /** | |
| * output whatever variable is passed on-screen for debugging purposes | |
| * | |
| * @param mixed $oVar the variable to be debugged | |
| * @param bool $bContinue if false, sends a full-stop to the running script | |
| * @return void | |
| * | |
| * @author gBrock |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * HTML5 Template for CodeIgniter | |
| * | |
| * @author gBrock | |
| * | |
| * Sets up a basic HTML5 document with some sensible setup, | |
| * also allowing you to pass arrays of CSS and JS files as | |
| * well as a view from your controller, which will be loaded |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * Includes for CodeIgniter | |
| * | |
| * @author gBrock | |
| * | |
| * Reads the passed URLs and renders the appropriate CSS and JS files from | |
| * the application's /views/ folder. Hopefully self-explanatory. | |
| * |
| # | |
| # Basic Party Model implementation for MySQL. | |
| # - Parties are either People or Organizations. | |
| # - Party names are tracked separately, including first_used and last_used as dates. | |
| # - Parties can have e-mails addresses, phone numbers, and physical addresses. | |
| # - Parties can have Relationships with one another. | |
| # | |
| # | |
| # Party Model: http://www.tdan.com/view-articles/5014/ | |
| # SO answer that helped me get started: http://stackoverflow.com/questions/5466163/same-data-from-different-entities-in-database-best-practice-phone-numbers-ex/5471265#5471265 |
| <ul class="selector"> | |
| <li data-name="red">Red</li> | |
| <li data-name="blue">Blue</li> | |
| </ul> | |
| <ul class="people"> | |
| <li class="red"> | |
| Ann | |
| <p>Lorem ipsum</p> | |
| </li> |
aOZZEb ('-' * 6)
Forked from Captain Anonymous's Pen mJEEBW.
A Pen by Greg Brock on CodePen.
A simple starting point for use in Laravel 5.1. Based on Flexible master layout by Sercan Çakır.
html5.blade.php and app.blade.php into your application's resources/views folder.app and hook into the yield points to flesh out your pages:
{{-- myfile.blade.php --}}@extends('app', [
| <?php | |
| /** | |
| * Joins an array of strings into a comma-separated string of readable output. | |
| * Array ['John', 'Paul', 'George', 'Ringo'] becomes the string "John, Paul, George, and Ringo". | |
| * | |
| * @param array $items | |
| * @param bool|true $oxfordComma | |
| * @param string $conjunction | |
| * @return string |
The HTML structure is very specific. It allows for selecting the based on :checked state. Otherwise it's a fairly standard replacement, except it's very capable of being further styled while reacting to :active, :hover, etc.
Requires Bootstrap.
A Pen by Greg Brock on CodePen.
| <?php | |
| namespace App\Extensions; | |
| use Illuminate\Support\Facades\Mail; | |
| class Postmaster { | |
| /** | |
| * Send an e-mail to a specific user. Pass in the User object, | |
| * the name of the view, any data needed by the view, and the subject. |