24 lines
530 B
PHP
Executable File
24 lines
530 B
PHP
Executable File
<?php
|
|
|
|
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
if (!function_exists('NotificationUpdate')){
|
|
|
|
function NotificationUpdate($userID, $param)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
if (!function_exists('NotificationView')){
|
|
function NotificationView()
|
|
{
|
|
$CI = &get_instance();
|
|
$CI->load->model('notification/Notification_model');
|
|
//echo 'test';die;
|
|
$user_id=$CI->session->userdata('user_id');
|
|
$output=$CI->Notification_model->getAllUnreadNotification($user_id);
|
|
//$output=$user_id;
|
|
return $output;
|
|
}
|
|
}
|