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

Request #6212 can't use foreach with a method call
Submitted: 2005-12-09 17:20 UTC
From: koeglstefan at gmx dot at Assigned: alan_k
Status: Closed Package: HTML_Template_Flexy
PHP Version: 5.0.5 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2010-04-28 14:25 UTC
Package:
Bug Type:
Summary:
From: koeglstefan at gmx dot at
New email:
PHP Version: Package Version: OS:

 

 [2005-12-09 17:20 UTC] koeglstefan at gmx dot at
Description: ------------ Using a foreach-loop with a method call which returns a array in the form {foreach:object.method(),var} returns the following error Parse error: parse error, unexpected '}' in /tmp/flexy_compiled_templates/<path>/info.html.en.php on line 18 Test script: --------------- {foreach:object.method(),var} {do_something()} {end:}

Comments

 [2005-12-12 04:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-12-14 22:18 UTC] mkliewe at gmx dot de
Would be nice if it will be added. I know the documentation only says that there should be a variable, but in the construct <tr flexy:foreach="object.getMethod(),m"> <td></td> </tr> the documentation also says there should be a variable, but in that case the method-call is working. So it cannot be too hard to get a method-call in a "normal" foreach-loop working.
 [2006-06-22 09:33 UTC] jan at motubo dot com (jan)
i agree with stefan, its annoying to can't use method calls within {foreach...}. tried to patch this - the tokenizer does the parsing, right? its nearly impossible to patch this "cryptic" code for anyone who has not wrote this class. but: as stefan wrote, <tr flexy:foreach="object.getMethod(),m"> works with methods. Is this a bug which will be fixed soon or will this stay a feature so we can use this...???
 [2008-04-06 21:48 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-03-17 15:36 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-03-18 05:11 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-04-27 13:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-04-28 08:36 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-04-28 13:51 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2010-04-28 14:25 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!