Hi Guys,

Just letting you know that now you are not allowed to have blank template files.

I had used one on a page that generated some plain text output that did not need to process a phptal template so I used a blank.xhtml file so nothing was added to the output.

PHPTAL 1.2.0 does not like this:

<b>Fatal error</b>: Uncaught From K:\xampplite\htdocs\apps\common\xhtml\BlankFile.xhtml around line 2 exception 'PHPTAL_ParserException' with message 'Document does not have any tags' in K:\xampplite\htdocs\apps\common\xhtml\BlankFile.xhtml:2
Stack trace:
#0 K:\xampplite\htdocs\apps\common\lib\PHPTAL\Dom\SaxXmlParser.php(338): PHPTAL_Dom_SaxXmlParser-&gt;raiseError('Document does n...') #1 K:\xampplite\htdocs\apps\common\lib\PHPTAL.php(980): PHPTAL_Dom_SaxXmlParser-&gt;parseString(Object(PHPTAL_Dom_DocumentBuilder), ' ?', 'K:\xampplite\ht...')
#2 K:\xampplite\htdocs\apps\common\lib\PHPTAL.php(709): PHPTAL-&gt;parse()
#3 K:\xampplite\htdocs\apps\common\lib\PHPTAL.php(548): PHPTAL-&gt;prepare()
#4 K:\xampplite\htdocs\apps\common\lib\Application.class.php(175): PHPTAL-&gt;execute()
#5 K:\xampplite\htdocs\apps\licensing\index.php(11): Application-&gt;start()
#6 {main}
thrown in <b>K:\xampplite\htdocs\apps\common\xhtml\BlankFile.xhtml</b> on line <b>2</b><br />

So now a I simply exit; once I have outputted the text data I want.

Wallace McGee /|/ Web Applications Developer
Petrosys /|/ www.petrosys.com.au
Level 4 North, 191 Pulteney Street, Adelaide SA 5000, AUSTRALIA
Switch: +61 8 8227 2799 /|/ Direct: +61 8 8418 1924 /|/ Mobile: +61 416 246 156
PHPTAL mailing list

Reply via email to