PHP code example of cita / silverstripe-modular
1. Go to this page and download the library: Download cita/silverstripe-modular library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cita / silverstripe-modular example snippets
public function getCacheInvalidator()
{
$prefix = str_replace('\\', '_' , strtolower(__CLASS__));
return $prefix . '__' . ($this->exists() ? ($this->ID . '__' . strtotime($this->LastEdited)) : time());
}