CodeIgniter Forums

Full Version: Sitemap for dynamic website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a dynamic website designed with Codeigniter 3 and I am working on the sitemap part as a newbie.
I found the library sitemap-php from evert/sitemap-php but I can't make it run.
From now this is what I did, I put the Sitemap.php file into my library folder
In my controller I enter the following

PHP Code:
public function Sitemap(){
$sitemap = new Sitemap('');
$sitemap->setPath('/public_html/Sitemap/'); // I created a folder Sitemap into my public folder
Then when I go to, I have an error 404.
Could you guide me to solve my issue.