This commit is contained in:
2026-03-03 16:30:57 +07:00
parent a13304e40e
commit c253e1a370
7569 changed files with 1324841 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class appnotification extends CI_Controller
{
public function __construct()
{
parent::__construct();
is_logged_in();
$this->load->model('notification_model', 'notif');
$this->load->library('form_validation');
}
public function index()
{
$this->load->view('includes/header');
$this->load->view('appnotification/index');
$this->load->view('includes/footer');
}
public function send()
{
$topic = $this->input->post('topic');
$title = $this->input->post('title');
$message = $this->input->post('message');
$this->notif->send_notif($title, $message, $topic);
$this->session->set_flashdata('send', 'Notifikasi berhasil dikirim');
redirect('appnotification/index');
}
}