I'm trying to use codeigniter in my intel XDK project to process the back-ending data
i have the following form in the index.html:
<form method="POST" class='ajax'>
<input type="text" name="user" />
<input type="password" name="password" />
<input type="submit" value="send" />
</form>
i'm getting the status of file not found when I try to access the controller with my js function:
$('form.ajax').on('submit', function(){
var that = $(this),
url = "../../controllers/welcome.php";
method = that.attr("method"),
data = {};
that.find("[name]").each(function(index, value){
var that = $(this),
name= that.attr("name");
value = that.val();
data[name] = value;
});
$.ajax({
url:url,
type:method,
data:data,
success: function(response){
console.log(response);
}
});
});
the url path leads to the file, but it still shows status a 404 to: localhost:58889/http-services/emulator-webserver/ripple/userapp//C/xampp/htdocs/my_project_folder/application/controllers/welcome.php
do I have to set something in my htacceess and config files, as in a website?
one more thing, my XDK project is in the view folder inside application
thanks in advance