public function doDelete()
 {
     $id_page = Input::get("id");
     if ($id_page) {
         Mailer::find($id_page)->delete();
     }
     return Response::json(array('status' => 'ok'));
 }
Beispiel #2
0
 private function doAddMailer()
 {
     Mailer::create(array("email_to" => $this->to, "subject" => $this->subject, "body" => $this->body));
 }