PHP code example of melisplatform / melis-cms-site-robot
1. Go to this page and download the library: Download melisplatform/melis-cms-site-robot 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-site-robot example snippets
// Get MelisEngineTableRobot service
$robotTable = $this->getServiceManager()->get('MelisEngineTableRobot');
//Get robots.txt contents and data for each domain
$robotData = (array) $robotTable->getEntryByField('robot_site_domain', $domainName)->current();