Welcome Guest, Not a member yet? Register   Sign In
How to pass complex data to other controllers?
#1

[eluser]sauronlord[/eluser]
Hi,

I am new to Code Igniter, and I am curious how to pass a lot/complex data to another controller.

In particular, I have a table of values (think spreadsheet like).
I would like on a submit/save to gather all of the values for every row (there can be hundreds) and then process them in the same(or different controller). The rows may be selectable by checkboxes, and I may only want to send in the ones that are selected.

I read up on the URI segments, and all I could think of at the moment was to pass each row like this:

url.com/controller/myFunc/row1NameValue/row1PropertyXValue/row1PropertyYValue/...etc (repeat for row2...rowN)

And then to reconstruct the 2 dimensional array myself.

Is there an easy way to get from form elements into a Controller function?

I would prefer to probably use POST variables because of the size of data... is there way to retrieve the POST variables from a controller method?

Thank you


Messages In This Thread
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 12:14 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 02:41 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 04:09 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 06:10 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 06:53 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 06:57 PM
How to pass complex data to other controllers? - by El Forum - 12-04-2009, 07:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB