Example #1
0
 /**
  * Make sure that the one to update belongs to the user
  * @Developer brandon
  * @Date May 19, 2010
  */
 public function edit($id = NULL)
 {
     $journal = ORM::factory('journal', $id);
     if ($journal->user->id != user::current()->id) {
         url::redirect('');
     }
     meta::set_title(date::user_friendly_date($journal->created_at) . ' : ' . $journal->title);
     parent::edit($id);
 }
Example #2
0
 /**
  * Edit the user
  * @Developer brandon
  * @Date May 19, 2010
  */
 public function edit()
 {
     user::require_login();
     parent::edit(user::current()->id);
     meta::set_title('Update Account');
 }