$r="<";
if($r=="<"){
echo 1;
}
else{
echo 0;
}
$this->f3->set('r',$r);
$this->f3->set('view','show.htm');
<check if='{{ @r }} == "<" '>
<true>
true {{ @r }}
</true>
<false>
false {{ @r }}
</false>
</check>
<?php if ($r == '<'): ?>
true <?= $r.PHP_EOL ?>
<?php else: ?>
false <?= $r.PHP_EOL ?>
<?php endif; ?>
Weird – It that the actual translation of the template?
I cant explain your output, but I suggest changing the line in your template to:
<check if=”{{ @r == "<" }}”>
(If you copy/paste fix the quotes – my email client is using directional quotes)
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more
options, visit this group at
https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
f3-framework...@googlegroups.com.
To post to this group, send email to
f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit
https://groups.google.com/d/msgid/f3-framework/3a18dd39-18b0-4b05-8c18-4cfa1744676c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Weird – It that the actual translation of the template?
I cant explain your output, but I suggest changing the line in your template to:
<check if=”{{ @r == "<" }}”>
Can you swap the quotes so the the if=”” has the double quotes? I’m wondering about the parsing of the template – though your template output looks right. If the code cut/pasted from your editor?
From: "v. via Fat-Free Framework" <f3-framework+APn2wQfsu8MCcWHUosn...@googlegroups.com>
Date: Friday, February 1, 2019 at 4:38 AM
To: Fat-Free Framework <f3-fra...@googlegroups.com>
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more
options, visit this group at
https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
f3-framework...@googlegroups.com.
To post to this group, send email to
f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/07e790b4-0cb9-4a76-867b-8a9f2ad863cb%40googlegroups.com.
I was able to reproduce this - @r is being converted to < - by the template renderer I’m sure – If test clause was output Id understand but its not so I don’t think it should to this but it is.
Try outputting {{ htmlspecialchars(@r) }} or view page source and you’ll see it
From: "v. via Fat-Free Framework" <f3-framework+APn2wQfsu8MCcWHUosn...@googlegroups.com>
Date: Friday, February 1, 2019 at 4:38 AM
To: Fat-Free Framework <f3-fra...@googlegroups.com>
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more
options, visit this group at
https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
f3-framework...@googlegroups.com.
To post to this group, send email to
f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/07e790b4-0cb9-4a76-867b-8a9f2ad863cb%40googlegroups.com.