This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
blinks4451850
Greetings! I want to add last-modified header for CMS pages, in twig we have this variable {{ this.page.lastModified }}, but how to get access to it in PHP code block? $this->page->lastModified of course doesn't work :(
Thank you!
Last updated
blinks4451850
mjauvin said:
look at using:
$this->template->lastModified
Trying to get property 'lastModified' of non-object :(
1-5 of 5