I have very freak problem :-)
Please, see this simple website: http://tests.vipserv.org/
There is... "1" number. But in code there is no any "1"...
I converted eol to Unix. No results. Also changed coding to UTF with/without boom.
"Website" is created from files: index.php:
<?php
class View {
public static $TPL_VIEW = 'view.php';
public static function renderView($template, $data = array()) {
echo require $template;
}
public static function generateView($template, $data = array()) {
return require $template;
}
}
View::renderView(View::$TPL_VIEW, '');
?>
and view.php:
(blanc)
You can download files from:
Thanks, A.
You are echoing it out yourself. According to the manual:
So instead of:
You probably want:
Assuming that your template is not supposed to actually return anything of course.