Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Extend the preAction() and postAction() controller methods. #95

Closed
trq opened this Issue May 28, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

trq commented May 28, 2012

Currently the preAction() and postAction() methods of a controller are executed either side of the controllers action method. This approach does not allow a great deal of flexibility and should likely be replaced by a mechanism allowing these methods to be user defined.

This mechanism could also itself be extended to allow these filters to be further refined based on the HTTP method. Something like:

<?php

$this->filter('pre', 'action');

// or
$this->filter('pre', 'action', 'get');

@trq trq closed this in 0a48dac May 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment