We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Missing newline at html source

Hi all,

I just created new Phalcon project via devtools. Theme engine is volt. There is no newline at index page's source code. Anybody knows to fix it?



1.3k
Accepted
answer

Problem solved. I changed

echo str_replace(["\n","\r","\t"], '', $application->handle()->getContent());

to

echo $application->handle()->getContent();

in /public/index.php