Files
accounting_dev_v2/application/controllers/Rolecheck.php
T
2026-09-11 16:03:00 +07:00

7 lines
460 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Rolecheck extends CI_Controller
{
public function index(){if(!$this->input->is_cli_request())show_404();$view=$this->db->query('SHOW CREATE VIEW `v_users`')->row_array();echo(isset($view['Create View'])?$view['Create View']:'v_users tidak ditemukan').PHP_EOL;foreach($this->db->order_by('id')->get('roles')->result_array()as$r)echo json_encode($r,JSON_UNESCAPED_UNICODE).PHP_EOL;}
}