Welcome Guest, Not a member yet? Register   Sign In
How to access data returned from model?
#4

[eluser]pejo[/eluser]
Thanks. Took your suggestion to do var_dump, this is what I got:
array(1) { ["pubdates"]=> array(0) { } }

So it appears as if the nested array is empty, yet when you pass it through to the View the data is accessible via $pubdates. Don't quite get that. I did try the $data['pubdates'][0]->pubid syntax but that gave property error.

Anyway I think I will look at changing what is returned rather than spend more time on this object.

Thanks for your suggestions.


Messages In This Thread
How to access data returned from model? - by El Forum - 04-27-2011, 09:29 AM
How to access data returned from model? - by El Forum - 04-27-2011, 09:45 AM
How to access data returned from model? - by El Forum - 04-27-2011, 02:27 PM
How to access data returned from model? - by El Forum - 04-27-2011, 03:16 PM
How to access data returned from model? - by El Forum - 04-28-2011, 08:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB