Tapan's World

Tapan Kumer Das

Darus Sallam, Mirpur, Dhaka, Bangladesh
Tapan Kumer Das

Monthly Archives / August 2015

Creating dynamic sitemap with Codeigniter

August 2, 2015 | CodeIgniter | by tapan

Recipe for creating Dynamic sitemap with CodeIgniter. Like yoursite.com/sitemap.xml Example. Suppose you have an articles blog where url for each article is by article ID Like yoursite.com/123 . All articles are stored in articleTable of the database. First Create a model to get URLs. Create a file named url_model.php in application/models directory. Get Urls from database <?php class Url_model extends CI_Model{     public function __construct(){ […]