I have website developed using Phalcon Framework. Now I need to develop REST API for that website. So I used Phalcon API tutorials, Those are work perfect in local server and another server. But it not works with current website. When I use that I'm getting "ApiController handler class cannot be loaded" also canot over write current index.php with "Micro" because that loading website content So, How i do develop that api using same phalcon in same server?
ex : current URL: http://www.sample.com need api url : http://api.sample.com/sat/newuser
I could fixed that problem using sub-domain. i pointed http://api.sample.com sub-domain to new directory called "api".