xamppでリダイレクト真っ白
xamppにEC-CUBEを入れ、
ECサイトを立ち上げる(テストで)が、
ログイン・ログアウト・会員登録時のリダイレクト時に、
画面が真っ白になる。
で下記のように修正
\data\class\pages\LC_Page.php("getRootPath関数")
function getRootPath($path) { // $path が / で始まっている場合 if (substr($path, 0, 1) == "/") { $realPath = realpath(HTML_PATH . substr_replace($path, "", 0, strlen(URL_DIR))); // 相対パスの場合 } else { $realPath = realpath($path); } // HTML_PATH を削除した文字列を取得. // FIXME OS依存の処理は別クラスに分ける? // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する if (substr(PHP_OS, 0, 3) == 'WIN') { $realPath = str_replace("\\", "/", $realPath); //*************************************************************** //変更前 $htmlPath = str_replace("\\", "/", HTML_PATH); //変更後 $htmlPath = str_replace("\\", "/", rtrim(HTML_PATH, "/")); //*************************************************************** $rootPath = str_replace($htmlPath, "", $realPath); } else { $htmlPath = rtrim(HTML_PATH, "/"); $rootPath = str_replace($htmlPath, "", $realPath); $rootPath = ltrim($rootPath, "/"); } return $rootPath; }
struts2
WEBフレームワークであるstrutsの次世代バージョンのstruts2.
と言っても、strutsとsturts2は、別ものに近い。
2ヶ月ほど前に、勉強し始めて、
STOPしている状況。
Struts 2入門(1)~基本形で理解する仕組みと構造~ (1/4):CodeZine(コードジン)
Struts 2入門(2)~バリデーションの仕組みを理解する(前編)~ (1/5):CodeZine(コードジン)
http://www.codezine.jp/article/detail/2572
http://www.codezine.jp/article/detail/3264
http://www.codezine.jp/article/detail/3565