Last active
June 23, 2016 14:53
-
-
Save fitorec/ff635ff4547bb7b52f1c58f4f3732cb3 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 | |
| # poner en el archivo app/Config/boostrap.php | |
| Inflector::rules('singular', array( | |
| 'rules' => array( | |
| '/([rlnd])es$/i' => '\1', | |
| '/([taeiouj])s$/i' => '\1', | |
| ), | |
| 'irregular' => array( | |
| 'sessiones', 'session', | |
| 'useres' => 'user', | |
| 'models' => 'model', | |
| 'controllers' => 'controller', | |
| ) | |
| )); | |
| Inflector::rules('plural', array( | |
| 'rules' => array( | |
| '/([taeiouj])$/i' => '\1s', | |
| '/([rlnd])$/i' => '\1es', | |
| ), | |
| 'irregular' => array( | |
| 'user' => 'users', | |
| 'model' => 'models', | |
| 'controller' => 'controllers', | |
| ) | |
| )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment