[PHPTAL] Escape PHP tags '? ?' on HTML Comments !-- //--

2012-02-01 Thread Nestor A Diaz
Hello, i am not sure if this is the supposed behaviour, but suppose i 
have the following code inside a template.


!--
?xml version=1.0 encoding=utf-8?
//--

It will render as is, so having a problem regarding the generated PHP 
code because the ? ?


*Parse error*: syntax error, unexpected T_STRING in ...

but since tal expessions are *not* evaluated inside comments i can't 
process it with a tal expression.


Shouldn't be the right behaviour to escape such characters when they are 
inside an html comment ?


I was thinking on implementing something like this on phptal for such case:

echo uuid
!--
? blah blah ?
//--
uuid;

Waiting for comments ...

Slds.

--
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-485-3020 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:2...@tiendalinux.com
Email/MSN: nes...@tiendalinux.com
http://www.tiendalinux.com/
Bogota, Colombia

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] International characters not shown after an upgrade

2008-01-15 Thread Nestor A. Diaz
Hello, i have a simple phptal application, that used to work, except that
2 days ago i decided to do an apt-get update, i tell the system to rebuild
the whole locales, and after that international characters do not shown
anymore, in fact the whole variable that have an international character.

In the next example i use an international character for my títle,
notice the í

Any help will be apreciated.


?php

$src = EOS
html
  head
  title tal:content=titlemy title/title
  /head
  body
h1 tal:content=title my title/h1
  /body
/html
EOS;

require_once 'PHPTAL.php';
$tpl = new PHPTAL();
$tpl-setSource($src);
$tpl-title = 'this is my títle';
try {
echo $tpl-execute();
}
catch (Exception $e){
echo $e;
}

?



-- 
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-600-5490 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:[EMAIL PROTECTED]
Email/MSN: [EMAIL PROTECTED]
http://www.tiendalinux.com/
Bogota, Colombia


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal