Example #1
0
 public function login()
 {
     $post = Request_Helper::post();
     if (!empty($post)) {
         $this->storeSession($post);
     }
     View_Helper::make('login.login', array(), 'login');
 }
 public function edit()
 {
     $comentarios = $this->model->get(array('id' => Request_Helper::post('id')));
     View_Helper::make('comentarios.edit', array('ID' => $comentarios->id, 'USER_ID' => $comentarios->user_id, 'CLIENT' => $comentarios->client, 'MESSAGE' => $comentarios->message), false);
 }
Example #3
0
 public function delete()
 {
     $this->model->softDelete(Request_Helper::post('id'));
 }
Example #4
0
 public function edit()
 {
     $usuario = $this->model->get(array('id' => Request_Helper::post('id')));
     View_Helper::make('usuarios.edit', array('ID' => $usuario->id, 'LOGIN' => $usuario->login), false);
 }
Example #5
0
 public function edit()
 {
     $noticia = $this->model->get(array('id' => Request_Helper::post('id')));
     View_Helper::make('noticias.edit', array('ID' => $noticia->id, 'USER_ID' => $noticia->user_id, 'TITLE' => $noticia->title, 'MESSAGE' => $noticia->message), false);
 }