I can't access to my cakephp controller to use it into the url parameter jquery
-
30-05-2022 - |
Pregunta
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
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow