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'); }
public function delete($moe) { $moe->send(array('result' => Post::instance()->findByPK($moe->get('GET.id'))->findById_author(Auth::data('id_author'))->get(1)->delete())); }