Professional Freelance Web Developer
CodeIgniter Activist, Caffeine Junkie

Elliot Haughin

Fresh Batch of CodeIgniter Libraries Out Now!

10th February 2008

After a bit of work, I’ve built a nice little set of useful CodeIgniter Libraries for you to plug into your applications.
I realized, that some of the features I have here on my blog, I would quite like to use in my CodeIgniter applications. And, because many of these new web 2.0 services, it was easy to standardize the libraries using Simplepie.

Featuring:

They’re simple and useful, and hopefully you can find a good use for them!
All are free to use, and if you want to spread the love, just pop a link back here for good karma :)

Check out the updated code page.

Coming soon: Twitter CodeIgniter Library

Related posts:

  1. CodeIgniter Twitter Library
  2. CodeIgniter Vimeo API Library Released
  3. Twitter API Library For CodeIgniter Released
  4. Introducing Inferno – CodeIgniter + Libraries

  • KaBaDaBrA
    Also had a problem with the set_cache_location ...set mine to the following and it was working fine and not getting the spc not writable errors anymore....

    $this->load->library('simplepie');
    $this->simplepie->set_feed_url('http://feeds.haughin.com/haughin');
    $this->simplepie->set_cache_location($_SERVER['DOCUMENT_ROOT'].'/tmp/rss/');
    $this->simplepie->init();
    $this->simplepie->handle_content_type();

    Just make a folder called "tmp" in your root directory and give it writable permissions...
  • I had problems with set_cache_location as well. To make it work I had to use (for last.fm at least) 'rss_cache_path' => BASEPATH.'cache/rss/lastfm-rss-cache/'.
  • Thanks for the great libraries! Any recommendations on a good library to facilitate uploading to Flickr?
  • You should set the cache directory when calling the library:


    $this->load->library('simplepie');
    $this->simplepie->set_feed_url('http://feeds.haughin.com/haughin');
    $this->simplepie->set_cache_location(APPPATH.'cache/rss');
    $this->simplepie->init();
    $this->simplepie->handle_content_type();
  • ONe other thing.. I am getting this error:

    Severity: User Warning

    Message: ./cache/107aba3281d2190bb8392cc495382c65.spc is not writeable

    Filename: libraries/simplepie.php

    Line Number: 1780


    Where exactly is the cache directory supposed to be setup?
  • Dope! Why don't you put these on the CodeIgniter forum? Or at least link to it....
  • Good work maintaining these libs.

    BTW, you might want to add this at beginning of the each lib as good practice.
    if (!defined('BASEPATH')) exit('No direct script access allowed');
  • Elliot
    Thanks for that catch... I've fixed the link now!

    Elliot
  • Nice work, but you should link Lastfm CodeIgniter Library on the Code page properly ;)
  • Amazing - thanks so much. As a CI newbie I find your libraries quite helpful. I will let you know when/where I use them :-)

    - Adam
  • Elliot
    Hey, I've fixed that now... still had it as 'draft'! :S
  • Jay
    Hmmm. The lastfm link seems to be broken...
blog comments powered by Disqus

Boring Stuff

Design © copyright Elliot Haughin 2009

Content published here are copyright their respective owners.

You cannot copy content from this site, either in English or translated to another language.

Keep Subscribed

Theres lots of ways for you to keep up with me on the web.

Please Note

Information given out on this blog should only be used as a guideline. I hold no liability for any code I write.

Always consult a professional before acting on this guidance.