hey guys...im having a issue when using ob_flush()...what im getting is a 1 at the end of my html depending on how many templates i render...in this instance i get 11 at the end of my html in the browser,
render in my view class:
public function render($file_name)
{
if (preg_match("/\.html$/i", $file_name))
{
ob_start();
extract($this->_variables);
require_once PRIVATE_DIRECTORY . 'application' . DS . 'views' . DS . $file_name;
$body = ob_flush();
}
$this->_repsonse->append_body($body);
}
inside my controller:
$this->view->render('template.html');
template.html
my header is here
<? $this->view->render('content.html') ?>
my footer here
how the source looks in browser:
my header is here
content is here
my footer here11
any idea why i get 1's after my html when using ob_start() please?
thank you