[Cppcms-users] check if file exists in template
Brought to you by:
artyom-beilis
From: sergey l. <ccp...@gm...> - 2012-09-30 11:40:54
|
Dear All! I need to check in template if file exists. What is the best practise to do this? Example: if (file_exists("<%= media %>/css/style.css")) { <link href="<%= media %>/css/style.css" rel="stylesheet" type="text/css" /> } Thanks in advance! |