![]() |
CI 2.0.1 - ci_modular issue? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI 2.0.1 - ci_modular issue? (/showthread.php?tid=39908) |
CI 2.0.1 - ci_modular issue? - El Forum - 03-24-2011 [eluser]gabybob[/eluser] hello, After the portage below CI-CUSTOM2 on the system 2.0.1, we were surprise to see that the routing "route.php" no longer works between 2.0 and 2.0.1, according to a survey go deeper we discovered different behavior of the system for the same application code. After reading the changelog http://ellislab.com/codeigniter/user-guide/changelog.html I see nothing on the URI's good PB is at the core / method URI.php $ CI-> uri-> fetch_uri_string () 2.0 in the function returned on an empty string in 1.2 below the breakpoint to put the PB show: 'echo' uri_string 2.0.1 '; var_dump ($ this-> uri-> uri_string, $ this-> method) die (); " example with CI 2.0.1, 2.0.1 uri_string string (1) "/" string (5) "index" ' example with CI2.0.0 'uri_string 2.0.0 string (0) "" string (5) "index"' on a future post I will give you the result of my investigation. Gabriel see http://codeigniter.fr/cms/forums/topic/ci-201-avec-ci_modular CI 2.0.1 - ci_modular issue? - El Forum - 03-24-2011 [eluser]WanWizard[/eluser] What is "CI-CUSTOM2"? And "ci_modular"? If this is a system with customized/extended core libraries, you can run into issues when upgradeing... CI 2.0.1 - ci_modular issue? - El Forum - 03-24-2011 [eluser]gabybob[/eluser] here is the culprit Code: if ($ uri == '/' | | empty ($ uri)) this code is located inside the system / core / URI.php method => _detect_uri () the behavior is different from 2.0.1, I give the result of my work to advance THAT CHOSE CI 2.0.1 => two day thank you my friend voici le coupable Code: if ($uri == '/' || empty($uri)) ce code se situe à l'intérieur du system/core/URI.php method => _detect_uri() le comportement est différent depuis la 2.0.1, je donne le résultat de mon travail pour faire avancer la CHOSE CI 2.0.1 merci mon ami CI 2.0.1 - ci_modular issue? - El Forum - 03-24-2011 [eluser]gabybob[/eluser] patch pour CI 2.0.1 and CI_modular Code: // Let's try the REQUEST_URI first, this will work in most situations class URI method _fetch_uri_string() Thanks you for feedBack Gabriel |