PHP code example of nighttraveler7 / xmlpage
1. Go to this page and download the library: Download nighttraveler7/xmlpage 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/ */
nighttraveler7 / xmlpage example snippets
httraveler7\XMLPage\Template;
$template_path = $_SERVER['DOCUMENT_ROOT'] . '/template.php';
$args = array();
$template = new Template($template_path);
$template->load_template($args);
$template->show_template();
httraveler7\XMLPage\XMLPage;
if (!isset($page_name)) {
$page_name = XMLPage::get_current_page_name();
}
$xmlpage = new XMLPage($page_name);
$xml_content = $xmlpage->xml_content;