On 7 Oct 2010, at 10:03, Andrei Iarus wrote: > Hello, > > I would like to find a nice solution to get the time, in which a page is > generated in ZF. > > Problems: If I do it in public/index.php, I can't display it in the HTML > (except with an "echo' call, but this will make the HTML invalid (as the > </html> tag is already displayed) ). >
Display the time within a comment. e.g. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>test</title> </head> <body> <p>Test</p> </body> </html> <!-- Time spent: 1ms --> is valid HTML. Regards, Rob...
