ErrorException [ Notice ]: Undefined variable: data

APPPATH/views/index.php [ 37 ]

32     unset($data['Password']);
33     unset($data['isActive']);
34     $role = Role::getById($data['RoleID']);
35     $data['RoleName'] = $role['Name'];
36     ?>
37     App.User = <?= json_encode($data)?>;
38 
39 </script>
40 <?
41 $js = array(
42     'jquery-2.0.2.min.js',
  1. APPPATH/views/index.php [ 37 ] » Kohana_Core::error_handler()

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

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

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

  5. APPPATH/classes/Controller/Main.php [ 15 ] » Kohana_View->__toString()

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

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

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

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

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

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

Environment