Home » HTML » HTML_Template_Flexy » Bug #3946
flexy:raw invalid compile result
Details
| Submitted | 2005-03-24 19:14 UTC |
|---|---|
| From | zx2001 at mail dot ru |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.10 |
| OS | WINXP |
| Roadmaps | (Not assigned) |
Comments
[2005-03-24 19:14 UTC] zx2001 at mail dot ru
Description:
------------
<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea():checked}">
compiled to:
<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("c",$t->person->useTextarea());?>>
(note $this->plugin("c"...) => "c" instead of "checked")
<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea:checked}">
and
{person.useTextarea():checked}
compiled properly.
Reproduce code:
---------------
<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea():checked}">
Expected result:
----------------
<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("checked",$t->person->useTextarea());?>>
Actual result:
--------------
<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("c",$t->person->useTextarea());?>>
[2005-05-12 08:09 UTC] zx2001 at mail dot ru
This happens using default compiler, i.e. Flexy.