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

Request #2655 Sub variable in the variable
Submitted: 2004-11-01 03:22 UTC
From: boci at dravanet dot hu Assigned:
Status: Verified Package: HTML_Template_Flexy
PHP Version: 4.3.9 OS: Linux
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 : 31 + 20 = ?

 
 [2004-11-01 03:22 UTC] boci at dravanet dot hu
Description: ------------ Hi! I need a sub variable feature (if it's possible); example this: {somevariable[subarray][_SESSION[var]]:h} or this: {somevariable[subarray][{_SESSION[var]}]:h} Cow

Comments

 [2004-11-02 05:13 UTC] alan_k
eventually, this should be possible, I've not sat down and looked at it, there are a few design issues (in that raw strings are assumed to be keys, rather than variables). for the time being it's possible to do it by making a calling a function {getsomevalue(subarray,subarray,var):h} function getsomevalue($ar,$k,$ses) { return $ar[$k][$_SESSION[$ses]]; }