Skip to content

Instantly share code, notes, and snippets.

View noopable's full-sized avatar

Tomoaki Kosugi noopable

  • Kipsproduction co. ltd.
  • Yokohama-city, Japan
View GitHub Profile
@noopable
noopable / bug.php
Created October 14, 2012 07:04
Input def sample
<?php
$inputFilter = $form->getInputFilter();
$spec = array(
'name' => 'an_element_name',
'required' => true,
'filters' => array(
array('name' => 'Zend\Filter\StringTrim'),
),
'validators' => array(
array(
@noopable
noopable / issue_ClassDefinition::getSupertypes.php
Created September 5, 2012 01:22
Bad injection problem (Zend\Di ZF 2.0.0 rc7)
<?php
// Bad injection problem in ZF 2.0.0 rc7
// Foo Module namespace
namespace Foo {
class AdminArea {
protected $isMemberOnly = true;
@noopable
noopable / Module.php
Created July 18, 2012 10:20 — forked from juriansluiman/Module.php
Set a default locale for your application in Zend Framework 2
<?php
namespace Application;
use Locale;
use Zend\EventManager\Event;
use Zend\ModuleManager\Feature;
class Module implements
Feature\BootstrapListenerInterface
{