Skip to content

Instantly share code, notes, and snippets.

@justinyost
Created June 17, 2014 20:59
Show Gist options
  • Save justinyost/dcb163d7887d917a0c8c to your computer and use it in GitHub Desktop.
Save justinyost/dcb163d7887d917a0c8c to your computer and use it in GitHub Desktop.
Sample Model with a Different Modified Date/Time Value in the Database
<?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