O'Reilly logo

Programming with CodeIgniter MVC by Yehuda Zadik, Eli Orr

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example 3 – building a library such as the Flickr API wrapper

The flickr.com website by Yahoo! provides API access to the Flickr repository of public photos uploaded to the community. The API is extremely rich, and its documentation is available at http://www.flickr.com/services/api/, and is called App Garden.

The API is enabled for various programming languages and access methods. We will build a solution of a wrapper that can be expanded to get any Flickr API service, using the PHP REST access method.

This example will be constructed from the following library, controller, and view:

  • application/libraries/flickr_wrapper.php: The is the CI wrapper library that enables smooth Flickr API access via CI. This basic services library can be expanded to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required