• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
route bug in _reindex_segments ?

#2
[eluser]Unknown[/eluser]
In case you do so, add this code to the end of the _validate_segments function:
Code:
if($this->fetch_directory()!='')
      array_unshift($this->rsegments, substr($this->fetch_directory(), 0, -1));

it will prevent bugs apearing when your controller is inside a subfolder, since now rsegment[1] would, without it, not be the name of the folder...


Messages In This Thread
route bug in _reindex_segments ? - by El Forum - 07-18-2007, 02:53 PM
route bug in _reindex_segments ? - by El Forum - 07-18-2007, 03:31 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.