Welcome Guest, Not a member yet? Register   Sign In
CI4- how to pass string with slash(/) to controller
#3

(02-13-2023, 04:11 PM)kenjis Wrote: How do you do in CI3?

in ci3 : first i need change permited uri config

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_()@&\-!';


thats all

passing data contains slash (/) work
view 
PHP Code:
"<?php echo site_url('Iobrg/downloadSMB/056/SMB-PAP/XII/2022') ?>

controller :  
public function downloadSMB($nomor_smb1)
dd($nomor_smb1) }


output 
string 
056/SMB-PAP/XII/2022


in CI4 
Output only 
056 
Reply


Messages In This Thread
RE: CI4- how to pass string with slash(/) to controller - by randyshare - 02-14-2023, 05:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB