This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return array( | |
'environment' => function() { | |
$environment = (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'); | |
return $environment; | |
}, | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function create($data = null) { | |
$json = "{ \"artist\":\"ergsern\", \"title\":\"enruy7u\" }"; | |
$array = \Zend\Json\Decoder::decode($json); | |
$artist = new Input('artist'); | |
$artist->getValidatorChain()->addValidator(new Validator\StringLength(array('min' => '5', 'max' => '20'))); | |
$title = new Input('title'); | |
$title->getValidatorChain()->addValidator(new Validator\StringLength(array('min' => '5', 'max' => '20'))); | |
$inputFilter = new InputFilter(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM | |
blah | |
WHERE | |
id NOT IN ( | |
SELECT | |
c.id | |
FROM | |
blah c | |
LEFT JOIN | |
blah d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gary Hockin | |
* 23/04/2013 | |
*/ | |
namespace FAFSServer\Service; | |
class FAFSServer | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
public function getServiceConfig() | |
{ | |
return array( | |
'abstract_factories' => array( | |
'Application\\Factory\\ServiceFactory', | |
), | |
); | |
} | |
... |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
OlderNewer