Skip to content

Instantly share code, notes, and snippets.

@ronan-gloo
Created April 24, 2014 08:12
Prg for devmode
<?php
namespace Application\Controller\Plugin;
use Zend\Mvc\Controller\Plugin\AbstractPlugin;
/**
* Use this object to replace the original prg controller's plugin for dev convenience.
*/
class PrgDev extends AbstractPlugin
{
function __invoke()
{
$controller = $this->getController();
return $controller->params()->fromPost() ?: false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment