Advertisement
Guest User

qweqwe

a guest
Aug 20th, 2011
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.82 KB | None | 0 0
  1. ErrorException [ Notice ]: Undefined index: roles
  2. -----------------------------------------------------------------------------------------------
  3. MODPATH/orm/classes/kohana/orm.php [ 1403 ]
  4.  
  5. 1398     */
  6. 1399    public function add($alias, $far_keys)
  7. 1400    {
  8. 1401        $far_keys = ($far_keys instanceof ORM) ? $far_keys->pk() : $far_keys;
  9. 1402
  10. 1403        $columns = array($this->_has_many[$alias]['foreign_key'], $this->_has_many[$alias]['far_key']);
  11. 1404        $foreign_key = $this->pk();
  12. 1405
  13. 1406        $query = DB::insert($this->_has_many[$alias]['through'], $columns);
  14. 1407
  15. 1408        foreach ( (array) $far_keys as $key)
  16.  
  17.  
  18. ------------------------------------------------------------------------------------------------
  19.  
  20.  
  21. $client->password = $_POST['password1'];
  22. 77             $client->nick = $_POST['nick'];
  23. 78             $client->verify_code = substr(md5(uniqid(rand(), true)), 0, 16);      
  24. 79            
  25. 80             $client->save();
  26. 81             $client->add('roles', ORM::factory('role', array('name' => 'login')));
  27. 82            
  28. 83             unset($_POST);
  29. 84             $this->request->redirect('/');
  30. 85         }else{
  31. 86             $this->data=$_POST;
  32.  
  33. ------------------------------------------------------------------------------------------------
  34.  
  35.  
  36. APPPATH/classes/controller/user.php [ 46 ] » Controller_User->register_user()
  37.  
  38. 41         $view = View::factory('home');
  39. 42         $view->content = $this->content;
  40. 43        
  41. 44         if($this->request->param('id') == "perform")
  42. 45         {
  43. 46             $this->register_user();
  44. 47         }
  45. 48         $view->errors = $this->errors;
  46. 49         $view->data = $this->data;
  47. 50         $this->response->body($view);
  48. 51     }
  49.  
  50.  
  51. ------------------------------------------------------------------------------------------------
  52.  
  53.  
  54. SYSPATH/classes/kohana/request/client/internal.php [ 118 ]»ReflectionMethod->invoke(arguments)
  55.  
  56. 113                 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.',
  57. 114                                                     array(':uri' => $request->uri()));
  58. 115             }
  59. 116
  60. 117             $method = $class->getMethod('action_'.$action);
  61. 118             $method->invoke($controller);
  62. 119
  63. 120             // Execute the "after action" method
  64. 121             $class->getMethod('after')->invoke($controller);
  65. 122         }
  66. 123         catch (Exception $e)
  67.  
  68.  
  69. ------------------------------------------------------------------------------------------------
  70.  
  71.  
  72. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
  73.  
  74. 59  public function execute(Request $request)
  75. 60  {
  76. 61      if ($this->_cache instanceof HTTP_Cache)
  77. 62          return $this->_cache->execute($this, $request);
  78. 63
  79. 64      return $this->execute_request($request);
  80. 65  }
  81. 66
  82. 67  /**
  83. 68   * Processes the request passed to it and returns the response from
  84. 69   * the URI resource identified.*/
  85.  
  86.  
  87. ------------------------------------------------------------------------------------------------
  88.  
  89. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
  90.  
  91. 1133            throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array(
  92. 1134                ':uri' => $this->_uri,
  93. 1135            ));
  94. 1136        }
  95. 1137
  96. 1138        return $this->_client->execute($this);
  97. 1139    }
  98. 1140
  99. 1141    /**
  100. 1142     * Returns whether this request is the initial request Kohana received.
  101. 1143     * Can be used to test for sub requests.*/
  102.  
  103.  
  104. ------------------------------------------------------------------------------------------------
  105.  
  106.  
  107. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()
  108.  
  109. 104 /**
  110. 105  * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
  111. 106  * If no source is specified, the URI will be automatically detected.
  112. 107  */
  113. 108 echo Request::factory()
  114. 109     ->execute()
  115. 110     ->send_headers()
  116. 111     ->body();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement