Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!defined('BASEPATH')) {exit('No direct script access allowed');}
- class Zend
- {
- function __construct()
- {
- ini_set('include_path',
- ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries');
- }
- function load($class)
- {
- require_once (string) $class . EXT;
- }
- }
- ?>
- <?php
- class Welcome extends Controller {
- function Welcome()
- {
- parent::Controller();
- }
- function index()
- {
- $this->load->library('zend');
- $this->zend->load('Zend/Service/Flickr');
- $flickr = new Zend_Service_Flickr('12e99caebb8f305fff5a943606ecde18');
- $results = $flickr->tagSearch('worldcup');
- foreach ($results as $result)
- {
- $photo = $result->Small;
- echo "<a href="{$photo->clickUri}"><img src="{$photo->uri}" /></a><br /><br />";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement