set_value for field with array name SOLVED |
[eluser]megabyte[/eluser]
K, first of all I have tested this but give no guarantees. I consider myself intermediate not an expert. Second of all, I haven't tested the helper function, and I'm pretty sure it will need to be changed as well. So if someone has the time, if not I'll get to it eventually. Anyway here ya go! Code: /** It be nice if some of the CI/ PHP experts could take a look, and let me know if it works for them. And if so who knows they might add it to the core
[eluser]megabyte[/eluser]
found a better solution from another post. http://ellislab.com/forums/viewthread/115253/#735080 here's the form helper set_value to go with it. Code: /**
[eluser]bkirkman[/eluser]
I'd like to chime in and mention I was facing the same issue. I couldn't get the above to work, but I found the following bug report that solved the issue for me. Arrays as field names not working Thanks, zdknudsen! Worked like a charm. I didn't have anything to do with it, but maybe this will help someone save some time and frustration in the future.
[eluser]webdevguy[/eluser]
[quote author="bkirkman" date="1280802808"]I'd like to chime in and mention I was facing the same issue. I couldn't get the above to work, but I found the following bug report that solved the issue for me. Arrays as field names not working Thanks, zdknudsen! Worked like a charm. I didn't have anything to do with it, but maybe this will help someone save some time and frustration in the future.[/quote] That bug tracker link is dead but bkirkman placed the fix on this thread: http://ellislab.com/forums/viewthread/156497/ |
Welcome Guest, Not a member yet? Register Sign In |