I have a website that uses Smarty. When I try $oSmart->display("header.html"); I get a blank page without warnings and errors. I'v proven with var_dump() that the smarty object is succesfully created. I know to that the page is enterily rendered by using:

echo "start";

//Smarty Stuff

echo "end";

Also the template folder is specified. Does anyone know what might have caused this? I use a ubuntu server with ispconfig and it is configurated with this turtorial: http://www.howtoforge.com/perfect-server-ubuntu-11.10-ispconfig-3. Sorry for any grammer errors, I'm from Holland.

Thanl you for your time and help.

Recommended Answers

All 3 Replies

Does the smarty compile the header.html?
Anything inside the directory themes_c?
Can you turn on the debug to true?

I already tried everything: Debugging, try catch, custom erros etc. I don't have a dir called themes_c Everything is stored in the /templates folder and this is set in the smarty object. How can I check if header.html is compiled?

Solved it Myself

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.