Skip to content

Instantly share code, notes, and snippets.

View dollardad's full-sized avatar

Dollardad dollardad

View GitHub Profile
@dollardad
dollardad / InjectionCreator.php:14
Created January 19, 2016 20:13
Uncaught ReflectionException: Class \VersionFeed\Filters\RateLimitFilter does not exist
/**
6 * A class for creating new objects by the injector.
7 *
8 * @package framework
9 * @subpackage injector
10 */
11 class InjectionCreator implements Factory {
12
13 public function create($class, array $params = array()) {
14 $reflector = new ReflectionClass($class);
@dollardad
dollardad / ReviewForm.php
Created December 7, 2015 20:41
Reviews form
class ReviewForm extends Form {
public function __construct($controller, $name) {
$fields = new FieldList(
TextField::create('Title', 'Title'),
HtmlEditorField::create('ReviewText', 'Write a Review'),
HiddenField::create('MemberID'),
HiddenField::create('NominationID'),
HiddenField::create('ID')
@dollardad
dollardad / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console