문제

when I try to use the controller/action in the jquery function for an url . I have a

NetworkError: 404 Not Found

displayed in firebug . this how I am calling in my jquery function .

 <?php $Url =Router::url(array('controller'=>'SessionModelsController','action'=>'transaction_ticker'),true); ?>
 function tick4(){
         $.ajax({
            type: "POST",
          url: '<?php echo $Url; ?>', ...

I have tried this too and it is the same problem .

>  var myBaseUrl = '<?php echo $this->Html->url('/'); ?>';
> 
function tick4(){
    $.ajax({
        type: "POST",
        url: myBaseUrl + "SessionModelsController/transaction_ticker",

thank you.

EDIT : the problem is resolved when I Have deleted

Controller

from

SessionModelsController

. and have used SessionModels

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top