Created
June 19, 2014 15:29
-
-
Save unr/0f94785fe1b0676e6a59 to your computer and use it in GitHub Desktop.
Example of my AppModel i18n issue
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 | |
| App::uses('Date', 'Model'); | |
| class AppController extends Controller { | |
| // Rest of my app stuff | |
| } |
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 | |
| class Date { | |
| public $dates = array(); | |
| public function getDate($date_key) { | |
| return self::$dates[$date_key]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment