SproutCMS

This is the code documentation for the SproutCMS project

class SeoController

Handler for SEO functions, including generation of robots.txt and XML sitemap

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends SeoController {
    
    /**
    * Echo the XML header for the sitemap
    **/
    private function header () {
        // Method code goes here
    }
    
    /**
    * Echo the XML footer for the sitemap
    **/
    private function footer () {
        // Method code goes here
    }
    
    public function __construct () {
        // Method code goes here
    }
    
    /**
    * Output a dynamic robots.txt file which points to the sitemap; for use on production sites
    **/
    public function robots () {
        // Method code goes here
    }
    
    /**
    * Robots.txt which denies all; for use on dev/QA sites
    **/
    public function robotsDeny () {
        // Method code goes here
    }
    
    /**
    * Output a dynamic XML sitemap
    **/
    public function xmlSitemap () {
        // Method code goes here
    }
    
}
?>