Ich habe seltsames Problem. Ich habe URI-Routing in meine Config CI wie folgt aus:
$route['content/:num'] = "content/read/$1";
ich auch Controller-Klasse "Inhalt" mit "lesen" Verfahren wie dieses:
class Content extends CI_Controller {
public function read($id) {
echo $id;
}
}
Und wenn ich diese auf Browser eingeben localhost/myweb/index.php/content/1 Es ist immer "$ 1" Echo nicht 1.
Danke für
Try '$ route [ 'content/(: any)'] = "content/lesen/1 $";' Und Überprüfen Sie, ob der Dateiname content.php und content.php nicht – user4419336