Created
April 24, 2014 08:12
Prg for devmode
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\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