ErrorException [ Notice ]: Undefined variable: blocks

APPPATH/views/portlets/portfoliodetails/portfoliodetails_index.php [ 5 ]

 1 <?php defined('SYSPATH') OR die('No direct script access.'); ?>
 2 <script src="/media/public/src/vendor/imagesloaded.pkgd.min.js"></script>
 3 <div class="spacer" style="height: 55px;"></div>
 4 <!--<img class="template" src="/media/images/portfolio/den-haag/heade.png" alt="">-->
 5 <?php foreach ($blocks as $block) :
 6     if($block->portfolio_block_type->id == 1) : ?>
 7         <section class="text-image <?=$block->optional_class;?>">
 8             <div class="text-block">
 9                 <div class="text-block-header">
10                     <?php if($block->ord == 1): ?>
  1. APPPATH/views/portlets/portfoliodetails/portfoliodetails_index.php [ 5 ] » Kohana_Core::error_handler(arguments)

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

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

  4. APPPATH/classes/Portletview.php [ 13 ] » Kohana_View->render(arguments)

  5. APPPATH/classes/Controller/Portlet.php [ 167 ] » Portletview->render()

  6. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Portlet->after()

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

  8. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

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

  10. SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)

  11. APPPATH/classes/Controller/Site.php [ 131 ] » Kohana_Request->execute()

  12. APPPATH/classes/Controller/Site.php [ 61 ] » Controller_Site->load_portlets()

  13. SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Site->before()

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

  15. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

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

  17. SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)

  18. DOCROOT/index.php [ 132 ] » Kohana_Request->execute()

Environment