Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

accessing arrays with fRequest::get()

posted by oliverd 9 years ago

Unless I'm missing it, there doesn't seem to be any easy way to access a specific element of an array via fRequest::get(). For example, the following does not work:

fRequest::get("first_name[$i]");

This means that to access an element of an array, you have to first save the array to a variable. This can be really annoying. In my case, I have an application in which the user can edit more than one similar item at a time. Thus each form field is a part of an array. I've resorted to simply accessing the input via the standard $_POST array.

Is this something that could be changed/fixed in a future release?

This functionality is available as of r850

posted by wbond 9 years ago