Isn't this just because you have:
for ($i=1; $i<=$this->Resume->getNumRows(); $i++){
$items[$i]['Resume']['startdate']
so $i will iterate until it is too high, as it equals the number of
rows (and the array is 0 indexed).
On Nov 17, 9:11 am, "gabordemeter" <[EMAIL PROTECTED]> wrote:
> Hil! i have some trouble with one of my controllers. I have a table
> called resumes where each row is a resume entry having a startdate and
> enddate (both UNIX timestamps).
>
> I'm trying to iterate through the table rows and find those rows where
> there is a time gap between current rows' startdate and previous row's
> end date yet I get an "undefined offset error" in my view. My
> controller, detailed error message and resumes table structure are
> athttp://bin.cakephp.org/view/156395995
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---