0
class Barcode extends CI_Controller
{
function index($barcode, $text='', $format="PNG", $quality=100, $width=160, $height=80, $type=1)
}
我有以下的功能,我想通过在URL中的以下内容:笨通过“姓名/名称”作为一个参数中的URL
http://localhost/index.php/barcode/index/1/Test%2FTest/PNG/100/256/80/1
,但我得到了404,当试图做到这一点。
他这样做的方式很好。请参阅CI的['uri_to_assoc()'](http://codeigniter.com/user_guide/libraries/uri.html)和PHP的['func_get_args()'](http://php.net/manual/en/function .FUNC-GET-args.php)。这是一个编码斜线的问题,对我来说,我得到一个*服务器* 404(不是一个CI)。我不知道为什么,用'.htaccess'做些什么? –