Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am vadremix on github.
* I am thezeblin (https://keybase.io/thezeblin) on keybase.
* I have a public key ASBtjVSoj14ZCi4h6jfX4AD972evszro3lVY6anj8iFDpAo
To claim this, I am signing this object:
@vadremix
vadremix / word.php
Created June 10, 2016 21:51
OOP palindrome checker example
<?php
/**
* Class to create word objects.
* Includes method to check whether word is a palindrome. Can be
* extended with methods to check other properties of the word.
*
* @author James Roper <vadremix@gmail.com>
*/
class Word {
protected $word_string;
@vadremix
vadremix / stories.php
Last active May 17, 2016 02:05
story controller used on nsinformer.com
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// This is the controller for nsinformer.com landing pages.
// I wrote this in 2014. These comments were written a couple years later.
class Stories extends CI_Controller {
public function index($url)
{
$this->load->database();
$this->load->model('Storymodel');