PHP code example of melisplatform / melis-engine
1. Go to this page and download the library: Download melisplatform/melis-engine 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-engine example snippets
// Get the service
$treeSrv = $this->getServiceManager()->get('MelisEngineTree');
// Get the breadcrumb
$pageBreadcrumb = $treeSrv->getPageBreadcrumb($pageId, 0, true);
// Get the service
$searchSvc = $this->getServiceManager()->get('MelisSearch');
// Search
$searchresults = $searchSvc->search($keyword, $moduleName, true);