Example #1
0
 /**
  * Update the user
  * @Developer brandon
  * @Date May 19, 2010
  */
 public function update()
 {
     user::require_login();
     if (!$this->input->post('password')) {
         unset($_POST['password']);
     }
     parent::update(user::current()->id);
 }
Example #2
0
 /**
  * Set the user id on update
  * @Developer brandon
  * @Date May 17, 2010
  */
 public function update($id = NULL)
 {
     $_POST['user_id'] = (string) user::current();
     parent::update($id);
 }