concept Flickr in category php

This is an excerpt from Manning's book Zend Framework in Action.
Flickr, owned by Yahoo!, has an equally simple and self-confident description:
In listing 13.8, we can see the original code for retrieving a requested article inside the ArticleController::indexAction() method, and underneath that our code to get the complementary images from Flickr. Having retrieved the article based on the ID passed to the action controller, we then pass that article’s keywords to our Flickr class. Finally, we pass the results to the view, which is shown in listing 13.9.
The additional code in the view is quite straightforward. It comprises a simple test to make sure we have some results before looping over them and setting up a linked image element and image title within an unordered list. With a little bit of CSS magic, we can float those images and achieve a gallery effect, as shown in figure 13.2. You can see the original images from the tag search in Flickr now appearing with our article on Edinburgh Zoo.
Before we get into our example, it’s important to note that what we’ll be showing here is for demonstration purposes only. For actual use, we’d need to be careful that our use of images from Flickr complied with its terms of use, which includes licensing limitations on individual images as well as limitations on what Flickr considers commercial use.
Our intention is to display relevant images from Flickr within our articles, but the main purpose of our example is to demonstrate the use of a public web service within an action controller rather than to suggest a particular use of Flickr’s service. With that disclaimer in mind, we can move on to our example.
The methods available in Zend_Service_Flickr are a relatively small set of those available in Flickr’s API, limited basically to finding images by tag, user information, or specific image details. While this could be used to retrieve a specific user’s images from Flickr for use in an article submitted by that user, we’re going to use the more general tag search for our example. Our starting point will be the same as for our Amazon example—a model class responsible for retrieving the data from Flickr.