Ejemplo n.º 1
0
 public function profile($moe)
 {
     $this->needLogin();
     if ($moe->isPost()) {
         !Auth::update($moe->get('POST')) || $moe->reroute($moe->get('REALM'));
         $moe->set('message', 'Update gagal!');
     }
     $moe->set('data', array('name' => Auth::data('name'), 'username' => Auth::data('username')));
     $moe->send('admin/profile');
 }