There is a function:
function load($view, $lang, $page) { $trans = (array) simplexml_load_file(ROOT.'/lang/'.$lang.'/'.$page.'.xml'); require_once 'content/'.$view.'.php'; } Call it:
public function start() { load('signup', $this->lang, 'signup'); } Bottom line: no errors, do not output html code But it worked before, and also works on other pages!
simplexml_load_filereturns false. In this case, errors can be obtained usinglibxml_get_errors( php.net/manual/ru/function.libxml-get-errors.php ) - Yuriy Prokopets