Skip to content

Instantly share code, notes, and snippets.

View GeeH's full-sized avatar

Gary Hockin GeeH

View GitHub Profile

Keybase proof

I hereby claim:

  • I am Spabby on github.
  • I am GeeH (https://keybase.io/GeeH) on keybase.
  • I have a public key whose fingerprint is F376 F611 64B5 4950 F6C6 EF27 B811 9D4E 8B57 BF03

To claim this, I am signing this object:

<?php
/**
* Global Configuration Override
*
* You can use this file for overriding configuration values from modules, etc.
* You would place values in here that are agnostic to the environment and not
* sensitive to security.
*
* @NOTE: In practice, this file will typically be INCLUDED in your source
* control, so do not include passwords or other sensitive information in this
@GeeH
GeeH / IndexController.php
Created March 31, 2014 07:11
Logger functions not playing together??? ZF2 core functions.
<?php
namespace Application\Controller;
use Zend\Log\LoggerAwareInterface;
use Zend\Log\LoggerAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
// Logger Aware Interface applies initialiser that injects logger automagically
class IndexController extends AbstractActionController implements LoggerAwareInterface
<?php
// Clevertext db update script.
// Gary Hockin .. gary --at-- garyhockin --dot-- co --dot-- uk
// June 2006
// input stuff
// extract the GET values into variables
extract($_GET);
// connect to database
@GeeH
GeeH / SomeForm.php
Last active August 29, 2015 14:06 — forked from anonymous/SomeForm.php
/**
* @Annotation\Attributes({"enctype":"multipart/form-data})
*/
class SomeForm
{
.......
/**
* @Annotation\Type("file")
* @Annotation\Options({"label":"File"})
<?php
use Zend\Http\Request;
use Zend\Http\Response;
use Zend\Mvc\Controller\PluginManager;
use Zend\Mvc\MvcEvent;
use Zend\Mvc\Router\RouteMatch;
/**
* Created by Gary Hockin.

Keybase proof

I hereby claim:

  • I am GeeH on github.
  • I am geeh (https://keybase.io/geeh) on keybase.
  • I have a public key whose fingerprint is F376 F611 64B5 4950 F6C6 EF27 B811 9D4E 8B57 BF03

To claim this, I am signing this object:

@GeeH
GeeH / README.md
Last active August 29, 2015 14:07 — forked from igorw/README.md

kayladnls/machine-forget

A simple machine forgetting library.

Example

Here is an example of how you can instruct the machine to forget the answer:

<?php
class MyControllerTest extends ControllerTest
{
public function setUp()
{
$this->controller('Application\Controller\IndexController');
}
public function testIndexAction()
return array(
'environment' => function() {
$environment = (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
return $environment;
},
);