Created
June 26, 2013 19:49
-
-
Save bayleedev/5870986 to your computer and use it in GitHub Desktop.
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 | |
| use lithium\core\Libraries; | |
| Libraries::applyFilter('instance', function($self, $params, $chain) { | |
| $data = $chain->next($self, $params, $chain); | |
| if (isset($params['options']['model'])) { | |
| $data->applyFilter('save', function() { | |
| // .... | |
| }); | |
| } | |
| return $data; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
detection working gr8 isset(params..) is true but apply filter save wont called ;// anyway i'll debug it