SproutCMS

This is the code documentation for the SproutCMS project

class BaseController

This is a true base controller.

It does nothing but base things.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends BaseController {
    
    /**
    * Return the class name for this controller, expressed in CSS style, i.e. with dashes
    * 
    * Example: When called from BlogPostController --&gt; 'blog-post-controller'
    **/
    public function getCssClassName () {
        // Method code goes here
    }
    
    /**
    * Gets the relative path to the module the controller lives in, or sprout itself
    **/
    public function getModulePath () {
        // Method code goes here
    }
    
    /**
    * Handles methods that do not exist.
    **/
    public function __call (string $method, array $args) {
        // Method code goes here
    }
    
    public function __construct () {
        // Method code goes here
    }
    
    /**
    * The router/kohana will invoke this method to invoke an action.
    * 
    * If you please, you may wrap this method to create before/after hooks.
    **/
    public function _run (mixed $method, mixed $args) {
        // Method code goes here
    }
    
}
?>