teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2016/03/19 07:38

投稿

k499778
k499778

スコア599

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
  ![イメージ説明](348559a6f4894bcb82902a1c580ea600.png)
10
- もちろん```url: "http://localhost/cakephp3/Sample/sample",```だとうまくいくのに
10
+ もちろん```url: "http://localhost/cakephp3/Sample/sample",```だとうまくいきます
11
11
 
12
12
 
13
13