alphabase / CodeIgniter-Sitemap-Generator

Generate a sitemap or sitemap index file for your web application with the CodeIgniter PHP framework.
42 stars 24 forks source link

How to use the library #1

Open sidgitind opened 6 years ago

sidgitind commented 6 years ago

Thank you for this sitemap library. I am trying to use it in my project and stuck with these queries.

  1. I want to add a URL to the sitemap as and when a new product is added to my website. I am confused by the usage of the add() function in your example controller.
  2. In your example controller, the general function will be called by bots when accessing the sitemap file, why add() function is used here...

Thanks for your help.