Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

ZendCasts.com: Building a JSON Endpoint with SLIM (Part 1)

ZendCasts.com: Building a JSON Endpoint with SLIM (Part 1)

On ZendCasts.com today, the next part of their series looking at using the Slim microframework has been posted. This is part one of a tutorial building a JSON endpoint for a web service.

You’ll need some of the base that he created in this previous screencast to follow along (the basic structure, really). His takes his basic “hello world” application and builds on it to add a “model” to pull name data from and has the “/names” action respond with a JSON-formatted message (and an “application/json” content-type). His “model” pulls the data out with findAll() and find() methods.

You can grab the source to follow along.

Source: http://www.phpdeveloper.org/news/17044

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Październik 27th, 2011 in WEB and PHP Development.

Leave a response: