ErrorException [ Warning ]: Undefined array key 0

APPPATH/views/site/fnb.php [ 6 ]

 1 <?php include 'layout/header.php'; ?>
 2   <div class="desktop">
 3     <section class="info py-5">
 4       <div class="container">
 5         <div class="d-flex flex-column">
 6           <h2><?php echo $category[0]['category']; ?></h2>
 7           <p>Home <img src="<?php echo URL_BASE; ?>public/assets/images/chevron-right.svg" alt=""> <span>Food and Beverages</span></p>
 8         </div>
 9       </div>
10     </section>
11 
  1. APPPATH/views/site/fnb.php [ 6 ] » Kohana_Core::error_handler()

  2. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()

  4. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  5. SYSPATH/classes/Kohana/Response.php [ 196 ] » Kohana_View->__toString()

  6. APPPATH/classes/Controller/Product.php [ 49 ] » Kohana_Response->body()

  7. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Product->action_index()

  8. {PHP internal call} » Kohana_Controller->execute()

  9. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke()

  10. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()

  11. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute()

  12. DOCROOT/html/index.php [ 118 ] » Kohana_Request->execute()

Environment