Ok let me explain what problem i am having,
i had create MVC like structure in php to create web API, and using angular as front. now i have create one login page and on button click event $http.post("user/login") get executed and in console i am getting output like this.
it is outputting whole index.php content, now i want to know what i am doing wrong?
this is my app.js code.
this is my .htaccess
ErrorDocument 404 p1.html
Header always set Access-Control-Allow-Origin "*"
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} ^/404/$
RewriteRule ^(.*)$ p1.html [L]
Options All -Indexes
this is my user.php
<?php
class user
{
public static function login(){
echo json_encode(array("in user class model"));
}
}
?>
and this is my index.php
i am also using spl_autoload_register and set_include_path,
need serious help.....
