Link to home
Start Free TrialLog in
Avatar of johnecollins
johnecollinsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Incomplete arrays passed from controller to view in Codeigniter

I have a Codeigniter application that is not receiving complete data in the view.

I have a report function in my controller that calls the model to create an array to pass to my view.

The array looks complete when I var_dump it in the model however it is truncated in the view is there a constraint or limit that I have not set or being imposed on the length of parameters?

Thank you

John
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Can you post your code?
Avatar of johnecollins

ASKER

Thanks Loganathan,

Here it comes ;-)
Loganathan,

The Controller, the model, the view and the output

Looking at the output in the controller it doesn't display the array in full

But in the view it says Undefined table data ;-(

Thanks for looking

John
books.php
Books-model.php
books-main.php
The-output.docx
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Chris,

Thanks very much for your effort, you couldn't pm your phone number could you  save me putting up questions ;-)

500 well earned points
Cheers

John
Thanks for the points :)

No go on the phone number - I don't always have the time to work on EE stuff, so by keeping it all within EE allows me to dip in and out when I have the time.

Besides, posting a question on here will get a good mix of experts to help you out.
Chris,

Cheers but if you see me in a pub I'll happily buy you a pint of beer ;-)

Thanks a lot

John
Sounds good :)