Created
June 17, 2014 20:59
-
-
Save justinyost/dcb163d7887d917a0c8c to your computer and use it in GitHub Desktop.
Sample Model with a Different Modified Date/Time Value in the Database
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('AppModel', 'Model'); | |
/** | |
* Blog Model | |
* | |
*/ | |
class Blog extends AppModel { | |
public $actsAs = array( | |
'Sitemap.Sitemap' => array( | |
// options for the Sitemap Behavior | |
'lastmod' => 'last_modified_date', // date/time field of the last modified that is in the database | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment