Created
June 5, 2009 00:15
-
-
Save Oshuma/123960 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 | |
| // CakePHP does stupid shit often times. | |
| // http://api.cakephp.org/view_source/object/#line-112 | |
| function dispatchMethod($method, $params = array()) { | |
| if (empty($params)) return $this->{$method}(); | |
| // We only hit this if there are parameters passed ($params isn't empty). | |
| return call_user_func_array(array(&$this, $method), $params); | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment