![]() |
CI4- how to pass string with slash(/) to controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: CI4- how to pass string with slash(/) to controller (/showthread.php?tid=86720) |
CI4- how to pass string with slash(/) to controller - randyshare - 02-13-2023 i need to pass data that contain slash(/) to ci4 controller. in ci3 there is no problem RE: CI4- how to pass string with slash(/) to controller - kenjis - 02-13-2023 How do you do in CI3? RE: CI4- how to pass string with slash(/) to controller - randyshare - 02-14-2023 (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') ?> RE: CI4- how to pass string with slash(/) to controller - kenjis - 02-14-2023 In C4, you can't get parameter including /. Code: --- a/app/Config/Routes.php Code: --- a/app/Controllers/Home.php http://localhost:8080/iobrg/download/056/SMB-PAP/XII/2022 You will see "056/SMB-PAP/XII/2022". RE: CI4- how to pass string with slash(/) to controller - randyshare - 02-14-2023 (02-14-2023, 05:39 PM)kenjis Wrote: In C4, you can't get parameter including /.did'nt work ![]() RE: CI4- how to pass string with slash(/) to controller - kenjis - 02-14-2023 PHP Code: public function downloadSMB($nomor_smb1) RE: CI4- how to pass string with slash(/) to controller - randyshare - 02-14-2023 (02-14-2023, 06:15 PM)kenjis Wrote: i'm sorry, i miss three dots there. thank you very much buddy, it's work. ![]() |