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:
I hereby claim:
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 |
<?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 |
/** | |
* @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. |
I hereby claim:
To claim this, I am signing this object:
<?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; | |
}, | |
); |