Simple sitemaps in codeigniter22 Sep 2011
Creating sitemaps is a bit of a hassle for any site bigger than a couple of pages, especially where a database is involved. While working on a recent project I created a library for codeigniter which allows the simple creation of sitemaps either by manually adding pages which might be appropriate for a blog, or allowing the library to scan controllers and adding all pages defined by methods. Common search engines can also be notified.
A simple example of it in use is shown below:
You can download the spark from: http://getsparks.org/packages/codeigniter-sitemaps
Or get the code from my github: http://github.com/chemicaloliver/codeigniter-sitemaps
Simple documentation is included and should be self explanatory.
This library is based on work by Philipp Dörner 2010 http://signalkraft.com/google-sitemaps-for-codeigniter