fuelphp -Undefined variable [closed]-Collection of common programming errors

I have book model view controller and I have library controller and view . The view folder has index.php and view.php . My question in my index.php i get following error:

ErrorException [ Notice ]: Undefined variable: books

Here is the code in my index.php file:

 

Library



  1. You got two errors there. One is that $books array is not initialized (hence the warning), other is that your foreach() is wrong. Replace this:

    
    

    with

    
    

    But you still need to find your missing $books array

  2. Change the line :

    to

           
    

Originally posted 2013-11-09 23:21:07.