ErrorException [ Notice ]: Undefined variable: subs

APPPATH/classes/controller/page/tree.php [ 967 ]

962                     ->find_all();
963             foreach ($pages as $page)
964             {
965                 $subs = ORM::factory('tree')->where('tree_pid', '=', $page->id)->and_where('tree_visible', '=', 1)->order_by('tree_prior')->find_all();
966             }
967             $this->response->body(View::factory('page/tree/all/production_1', array('main_page'=>$main_page, 'pages'=>$pages, 'subs'=>$subs, 'path'=>$path)));
968         }
969         
970         /*production_2*/
971         
972         public function action_small_production_2()
  1. APPPATH/classes/controller/page/tree.php [ 967 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Page_Tree->action_small_production_1()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. APPPATH/classes/controller/page/main.php [ 225 ] » Kohana_Request->execute()

  7. {PHP internal call} » Controller_Page_Main->action_index()

  8. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  9. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  10. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  11. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment