This is a true base controller. It does nothing but base things.
This is the code documentation for the SproutCMS project
Search documentation |
class BaseControllerThis 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 --> '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
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|