kuporpal / smartypdt

Automatically exported from code.google.com/p/smartypdt
0 stars 0 forks source link

XML Declarations cause validation errors #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If a template contains an XML declaration an error is generated:

<?xml version="1.0" encoding="iso-8859-15"?>

- syntax error, unexpected 'version'

I expect this is due to <? being classed as a PHP shorthand tag so not sure 
what can be done about it.

Smarty 0.9.0.

Original issue reported on code.google.com by dashdroi...@gmail.com on 5 Feb 2012 at 3:57

GoogleCodeExporter commented 8 years ago
A work around is to disable PHP short tags:

Windows -> Preferences -> PHP -> PHP Interpreter -> Uncheck "Use Short Tags"

Rebuild.

Original comment by dashdroi...@gmail.com on 10 Feb 2012 at 11:22