質問編集履歴
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
1.ajaxのurlを```url: "<?php echo $this->Html->url('/Sample/sample/', true); ?>",```または```url: "<?php echo $this->html->url(array('controller' => 'Sample', 'action' => 'sample')); ?>",```にすると挙動がおかしくなる。
|
8
8
|
以下のようにindex.ctpが読み込まれてしまう。
|
9
9
|

|
10
|
-
もちろん```url: "http://localhost/cakephp3/Sample/sample",```だとうまくい
|
10
|
+
もちろん```url: "http://localhost/cakephp3/Sample/sample",```だとうまくいきます。
|
11
11
|
|
12
12
|
|
13
13
|
|