Answers to your questions
- First thing I want to ask if I can create an API from a Simple application (the one that is generate by the dev tool from command line)? Can I use controllers to manage the requests? It's very hard to understand for me. Where will I put the PhQL querries?
You can do anything you like :) You can use the micro framework or the full blown framework that Phalcon offers. Where you put your PHQL queries is entirely up to you. Some people put them in their models, while others put them in their controllers. There are endless discussions as to which approach is the coorrect one. For me, whatever works for you.
- Second: the mobile app will send me 3 photoes with http. What is the best way to send or parse them? In json? or with parameters? If with parameters how will I parse it with Phalcon.
If the mobile app sends you binary data (aka photos) you can get them from the POST array and then parse them appropriately (see my previous reply about JSON resources in SO). You can create a class that will do just that i.e. parse binary data from responses or put that functionality in a controller that would do this.
- Is there a book or something about phalcon? The documentation is good but it gives to many ways to do the same thing that really confuses me. I just need an example of how to do a good API and a website in one project.
You can have a look at the available tutorials. Additionally you can google the API creation terms and see implementations from different languages. The code of those languages can be easily adapted to work with Phalcon.
Any other question - we are here to help :)