Previous Class
Solar_Controller_Console

Solar_Controller_Front
Overview

Next Page
Config

Solar_Controller_Front

Front-controller class to find and invoke a page-controller.

An example bootstrap "index.php" for your web root using the front controller ...

<?php
require 'Solar.php';
Solar::start();
$front = Solar::factory('Solar_Controller_Front');
$front->display();
Solar::stop();
?>

Package

This class is part of the Array package.

Inheritance:

Configuration Keys

  • classes: Base class names for page controllers.
  • disable: A list of app names that should be disallowed and treated as "not found" if a URI maps to them.
  • default: The default page-name.
  • routing: Key-value pairs explicitly mapping a page-name to a controller class (static mapping).
  • rewrite: Rewrite URIs according to these rules (dynamic mapping).
  • replace: Replacement strings for rewrite rules.
  • explain: Dump an explanation of the routing path when a page is not found.

Constants

None.

Public Properties

The Solar_Controller_Front class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Controller_Front class.

You can also view the list of all public, protected, and private methods.

__construct()
Constructor.
__destruct()
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
display()
Displays the output of an page/action/info specification URI.
dump()
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
fetch()
Fetches the output of a page/action/info specification URI.
locale()
Looks up class-specific locale strings based on a key.