Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ErrorException [ Notice ]: Undefined index: roles
- -----------------------------------------------------------------------------------------------
- MODPATH/orm/classes/kohana/orm.php [ 1403 ]
- 1398 */
- 1399 public function add($alias, $far_keys)
- 1400 {
- 1401 $far_keys = ($far_keys instanceof ORM) ? $far_keys->pk() : $far_keys;
- 1402
- 1403 $columns = array($this->_has_many[$alias]['foreign_key'], $this->_has_many[$alias]['far_key']);
- 1404 $foreign_key = $this->pk();
- 1405
- 1406 $query = DB::insert($this->_has_many[$alias]['through'], $columns);
- 1407
- 1408 foreach ( (array) $far_keys as $key)
- ------------------------------------------------------------------------------------------------
- $client->password = $_POST['password1'];
- 77 $client->nick = $_POST['nick'];
- 78 $client->verify_code = substr(md5(uniqid(rand(), true)), 0, 16);
- 79
- 80 $client->save();
- 81 $client->add('roles', ORM::factory('role', array('name' => 'login')));
- 82
- 83 unset($_POST);
- 84 $this->request->redirect('/');
- 85 }else{
- 86 $this->data=$_POST;
- ------------------------------------------------------------------------------------------------
- APPPATH/classes/controller/user.php [ 46 ] » Controller_User->register_user()
- 41 $view = View::factory('home');
- 42 $view->content = $this->content;
- 43
- 44 if($this->request->param('id') == "perform")
- 45 {
- 46 $this->register_user();
- 47 }
- 48 $view->errors = $this->errors;
- 49 $view->data = $this->data;
- 50 $this->response->body($view);
- 51 }
- ------------------------------------------------------------------------------------------------
- SYSPATH/classes/kohana/request/client/internal.php [ 118 ]»ReflectionMethod->invoke(arguments)
- 113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.',
- 114 array(':uri' => $request->uri()));
- 115 }
- 116
- 117 $method = $class->getMethod('action_'.$action);
- 118 $method->invoke($controller);
- 119
- 120 // Execute the "after action" method
- 121 $class->getMethod('after')->invoke($controller);
- 122 }
- 123 catch (Exception $e)
- ------------------------------------------------------------------------------------------------
- SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
- 59 public function execute(Request $request)
- 60 {
- 61 if ($this->_cache instanceof HTTP_Cache)
- 62 return $this->_cache->execute($this, $request);
- 63
- 64 return $this->execute_request($request);
- 65 }
- 66
- 67 /**
- 68 * Processes the request passed to it and returns the response from
- 69 * the URI resource identified.*/
- ------------------------------------------------------------------------------------------------
- SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
- 1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array(
- 1134 ':uri' => $this->_uri,
- 1135 ));
- 1136 }
- 1137
- 1138 return $this->_client->execute($this);
- 1139 }
- 1140
- 1141 /**
- 1142 * Returns whether this request is the initial request Kohana received.
- 1143 * Can be used to test for sub requests.*/
- ------------------------------------------------------------------------------------------------
- DOCROOT/index.php [ 109 ] » Kohana_Request->execute()
- 104 /**
- 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
- 106 * If no source is specified, the URI will be automatically detected.
- 107 */
- 108 echo Request::factory()
- 109 ->execute()
- 110 ->send_headers()
- 111 ->body();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement