- implode: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$templateXML = simplexml_load_file(
implode(
DIRECTORY_SEPARATOR,
[JPATH_SITE, 'templates', $this->template->name, 'templateDetails.xml']
)
);
if (!strlen((string) $templateXML->namespace)) {
// do something with non-namespaced template
}