Issue with controller's parameters |
Hi everyone, this is my first post on this forum. I'm a french developper, so please excuse me for my english
I'm using Codeigniter 2 for a while on various projects, but this morning i tried to start a new project from scratch, with Codeigniter 3. Everything was ok untill i decided ton add a simple parameter to one on my controller. So i tried to reproduce the problem in a test project : My routes.php : Code: $route['test'] = 'test_controller'; My test_controller : Code: class test_controller extends CI_Controller { My base .htaccess (a very basic one that i use for developpement purposes, but works with CI-2) : Code: RewriteEngine On If i remove the $p parameter and access the page : http://localhost/site_name/test/test/ I works fine. But if i let the $p parameter and access this URL : http://localhost/site_name/test/test/1 I get a 404 page not found error. I also tried to do exactly the same test, on an CI 2 core, and it works fine ! I guess that the problem is into my .htaccess, but i don't understand why it work's in CI 2, but not in CI 3 ? Does somebody has ever had this issue ? |
Welcome Guest, Not a member yet? Register Sign In |