In this example, we will show you how to pass and use complex parameters, such as arrays and object arrays, from the CI controller to the rendered CI view to be used in the view. You can pass any number of arrays as parameters to a view; you can also pass objects, such as rows of a query result.
A standard GET parameters URI looks like this:
However, let's remember that in CI the URI is passed in this manner:
http://ourdomain.com/index.php/example2/more/1/2/3. For more information, see Chapter 2, Configurations and Naming Conventions.
Looking at the URI, we will build the controller
example2.php with the function named
more with the three ...