Skip to content

Instantly share code, notes, and snippets.

@justinyost
Created June 17, 2014 20:57
Show Gist options
  • Save justinyost/c61054b44e5579ae5d64 to your computer and use it in GitHub Desktop.
Save justinyost/c61054b44e5579ae5d64 to your computer and use it in GitHub Desktop.
Sample Model With Modified DateTime Field Unset
<?php
App::uses('AppModel', 'Model');
/**
* Blog Model
*
*/
class Blog extends AppModel {
public $actsAs = array(
'Sitemap.Sitemap' => array(
// options for the Sitemap Behavior
'lastmod' => false, // will no longer attempt to use a last modified date/time field when generating the sitemap
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment