Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGonzalo Blasco
11,927 PointsjQuery, Angujar.JS and PHP?
I'm working on a website for a automobile and motocycle retail store. I'm trying to make it very dynamic, lovely to the eye, by using differents frameworks.
My problem is I don't know yet how to interact between the JSON I need for Angular.JS and the data stored in my MySQL DB with the list of cars and motos available in the store.
In the past, I was just running a query and show it inside a list in the stock.php, but now I want to give the client the possibility to filtre the search and 'play' with the content.
Can anybody help me?
1 Answer
Gonzalo Blasco
11,927 PointsI find this video in YouTube with a very good tutorial... https://www.youtube.com/watch?v=9BuQIxxS6Mo
Jason Desiderio
21,811 PointsJason Desiderio
21,811 PointsGonzalo Blasco, you should try using a micro framework for php that specializes in writing APIs. That way you can still use the queries you are used to and display them as which ever url you choose. Here are a couple to check out: Slim - http://www.slimframework.com/, Bullet - http://bulletphp.com/, Silex - http://silex.sensiolabs.org/