Codeigniter: URI you submitted has disallowed characters
change in config.php
file
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\=';
and
$config['enable_query_strings'] = TRUE;
It works for me. Try it yourself!
In CI open directory at
project-folder-name/application/config/config.php
and configure the variable $config['permitted_uri_chars']
:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@\=';
This will work for all special characters
In /project-folder-name/application/config/config.php configure this variable:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@\=';
it also works for @ character
first of all you have to encode your id that is pass in url, then in controller you have to decode the id. view:
<a href="<?php echo base_url()?>Cinvoice/imei_invoice/<?php echo base64_encode($invoice_list['invoice_id']); ?>" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="left" title="Final Invoice By Ware House">Primary Order</a>
Controller:
when you call fuction that is in library
$content = $CI->linvoice->get_imei(base64_decode($invoice_id));