Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
trq opened this Issue · 0 comments

1 participant

Tony R Quilkey
Tony R Quilkey
Owner

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');
Tony R Quilkey trq closed this issue from a commit
Tony R Quilkey trq Rework controller dispatch.
> Moved the responsibility of dispatching an action into the Standard
controller base.

> Removed the preAction and postAction methods in favour of events.

Closes #95
Closes #96
0a48dac
Tony R Quilkey trq closed this in 0a48dac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.