Hi!
I found another problem, which is very similar to the one from one reported on 2006-07-12 (link to the post) with function parameters and routing. The thread was old, I am using CI 1.5.2, so I reposted this.
I am using following example: http://codeigniter.com/wiki/Category:Internationalization::Internationalization_Views_i18n/
(in short, in that example url is changed from /Controller/Action/Argument/ to /Lang/Controller/Action/Argument )
And this is the problem:
For url: http://localhost/en/C/A/arg
‘en’ is successfully found as language
‘C’ is successfully found as controller
‘A’ is successfully found as action
but argument ‘arg’ is not! :(
the method ‘A’ receives its name instead of the argument. So it looks like the problem is indeed in CodeIgniter.php:216 and in hardcoded values 2 or 3.
I believe that segments index for accessing arguments should be calculated according to the real position of the arguments in the segment array and not hardcoded.
For now, of course I can ignore action parameter and just access 4th segment in the segment_array but this is not the real solution. Unfortunately I still don’t have enough knowledge of CI to tackle this problem on my own.
