php - An upgrade from CakePHP 1.2 to 1.3 broke my routes, although they should be 1.3 compatible -


I am upgrading CakePHP 1.2.10 to 1.3.11 through "Guide" and I know that I It is important to be sure that I am compatible with root 1.3.

Although my paths do not make anything inconsistent:

It is no longer supported in the form of greedy stars in the middle path, unchecked, and complex path compile these two shores- Router changes in the outside and beyond features as was done in 1.2.

The second edge is the case:

The first path was removed from the sections using full regular expressions.

How do my ways behave:
  • On the home page, does not work However, on 1.2 this successfully route # 1 (Resolved by ivo)
  • / lv / products * does not work *. Using the controller "product" and default action "index", there should be # 6 matching, but it thinks that "LV" is the controller (ignoring
  • / Lv / products / index works!
  • / lv / product / view / product name works!

    The cake provides errors similar to this error / lv / products :

      Absent controller error: LvController not found. Error: Create class LvController in the file below: app \ controllers \ lv_controller.php & lt;? Php class LvController AppController {var $ name = 'Lv';}? & Gt;   

    My routes:
      increases root # 1: This route should work as a root route, because we have Default for: Lang. But now I can not open the homepage if I have a clear "/" router router :: connect ("/: lang /", array ("controller" = & gt; "start", "lang" => ), Array ("lang" = & gt; "[az] {2}")); // # 2 This route seems to work fine. Routers :: Connect ("lan", "admin" => = & Gt; "[az] {2}")); // ================================================ Route ================================= Router :: connect ("/: lang / (" Lang "=" {2} ")); // # 4 router :: connect (" /: lang / news ", array (" controller "=> "News", "verb" = & gt; "listall", "lang" = & gt; "lv"), array ("lang" => gt; [az] {2})); // # 5 router :: connect ("/: lang / employee", array ("controller" => "employee", "verb" = & gt; "index", "lang" = & gt; "lv"), Array ("lang" = & gt; "[az] {2}")); // ============================ ================================================== // # 6 Hold all the routes. Outer :: connect ("/: lang /: controller /: action / *", array ("lang" => lv), array ("lang" = & gt; "[az] {2}"   

    Thanks for any help.

    For an original root, I think you want '/' , or '/ lt; param> gt;'

    '/: lang /' expects something to happen for long - this is not optional, afaik instead of '/: lang' Try .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -