PHP code example of melisplatform / melis-cms-page-historic
1. Go to this page and download the library: Download melisplatform/melis-cms-page-historic 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/ */
melisplatform / melis-cms-page-historic example snippets
public function attach(EventManagerInterface $events)
{
$sharedEvents = $events->getSharedManager();
$callBackHandler = $sharedEvents->attach(
'MelisCms',
'meliscms_page_delete_end',
function($e) {
$sm = $e->getTarget()->getServiceManager();
$params = $e->getParams();
// Custom Code
},
50);
$this->listeners[] = $callBackHandler;
}