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

Request #1351 Complex arguments
Submitted: 2004-05-06 08:28 UTC
From: mclap at rrf dot ru Assigned:
Status: Verified Package: HTML_Template_Flexy
PHP Version: 4.3.2 OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 1 = ?

 
 [2004-05-06 08:28 UTC] mclap at rrf dot ru
Description: ------------ It would be wonderful, if the Flexy is able to do folowing things: 1. Complex arguments {method(#some#,var.get(#data#)} and flexy:if="method(#some#,var.get(#data#)}" in html tags. 2. Escaping of # Sometimes it's necessary to pass '#' symbol as argument. Thank you in advance.

Comments

 [2004-05-06 09:09 UTC] alan_k
alot of this is quite difficult It will probably end up being supported by doing flexy:if="{xx.somemethod(#xxx#,var.get(#dddd#))}" (eg. adding in the extra {}) as the arguments are currently supported using a horible regex.. no promises, unless you want to attach Flexy/Compiler/Standard/Tag.php
 [2006-06-22 10:22 UTC] jan at motubo dot com (jan)
i need something like: {if:isEqual(getTotalPages(),#1#)} Got error "...on Line 0 Position:13: unexpected something: (g) character: 0x67". But: {if:isEqual(someVariable,#1#)} works fine...also alan's tipp with addional {} around getTotalPages() did not work: then the if is calculated once when compiling - not always. so the result will be always true or always false - unless you set "forceCompile=1"