Fixed typo in ReadMe file

the function snippet goes in the AppModel, not the AppController