30 lines
		
	
	
		
			689 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			689 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?php
 | 
						|
function menu_array(){
 | 
						|
 | 
						|
	$CI = &get_instance();
 | 
						|
	$CI->load->model('home/home_model');   
 | 
						|
	$user_id=$CI->session->userdata('user_id');
 | 
						|
	$data=$CI->home_model->get_menu($user_id);
 | 
						|
	return $data;
 | 
						|
	// $CI->db->insert(db_prefix() . 'pa_notify_log', [
 | 
						|
	// 	'notify_id'      	=> $notification['id'],
 | 
						|
	// 	'triggertime' 		=> date("Y-m-d H:i:s")
 | 
						|
	// ]);
 | 
						|
 | 
						|
	//return $user_id;
 | 
						|
	// echo '<pre>';
 | 
						|
 //    if(is_array($user_id)) {
 | 
						|
 //      print_r($user_id);
 | 
						|
 //    } else {
 | 
						|
 //      var_dump($user_id);
 | 
						|
 //    }
 | 
						|
 //    echo '</pre>';
 | 
						|
}
 | 
						|
function dashboard_menu_array(){
 | 
						|
	$CI = &get_instance();
 | 
						|
	$CI->load->model('home/home_model');
 | 
						|
	$data=$CI->home_model->get_dashboard_menu();
 | 
						|
	return $data;
 | 
						|
}
 | 
						|
 | 
						|
?>
 |