Code Igniter: Access array elements from controller |
[eluser]justmelat[/eluser]
I have written this function in CI and for various reasons, I need to assign the contents of the array to variables to use later in the controller. Because of the way this legacy code is set up, I need to get to the elements of the array from the controller. How do I get to the array elements in $data['oneResult'] from function below. I have tried a few things like the element() helper. Nothing works. In debug mode, I see the data I need and at this point, I need to assign them to certain variables, so I want to do this: Code: $holdID = $data['oneResult']['contact_id']; Can anyone show me how to do this please?
[eluser]PravinS[/eluser]
check "Adding Dynamic Data to the View" in following link http://ellislab.com/codeigniter/user-gui...views.html |
Welcome Guest, Not a member yet? Register Sign In |