Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Bug #3946 flexy:raw invalid compile result
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)    
Subscription  


 [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());?>>

Comments

 [2005-05-12 04:42 UTC] alan_k
is this using the flexy backend, rather than the standard one?
 [2005-05-12 08:09 UTC] zx2001 at mail dot ru
This happens using default compiler, i.e. Flexy.
 [2005-05-14 04:18 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Note: you need to use flexy:ignore with flexy:raw on elements.