Previous Class
Solar_Controller_Front

Solar_Controller_Page
Overview

Next Page
Constants

Solar_Controller_Page

Abstract page-controller class.

Expects a directory structure similar to the following ...

Vendor/              # your vendor namespace
  App/               # subdirectory for page-controllers
    Base/
      Helper/        # shared helper classes
      Layout/        # shared layout files
      Locale/        # shared locale files
      Model/         # shared model classes
      View/          # shared view scripts
    Example.php      # an example app
    Example/
      Helper/        # helper classes specific to the app
        ...
      Layout/        # layout files to override shared layouts
        ...
      Locale/        # locale files
        en_US.php
        pt_BR.php
      View/          # view scripts
        _item.php    # partial template
        list.php     # full template
        edit.php     # another full template

When you call fetch(), these intercept methods are run in the following order ...

  1. _load() to load class properties from the fetch() URI specification

  2. _preRun() before the first action

  3. _preAction() before each action (including _forward()-ed actions)

  4. ... The action method itself runs here ...

  5. _postAction() after each action

  6. _postRun() after the last action, and before rendering

  7. _render() to render the view and layout; this in its turn calls _setViewObject() and _renderView() for the view, then _setLayoutTemplates() and _renderLayout() for the layout.

Catalog

This class is part of the Solar_Controller package.

Inheritance:

Constants

None.

Public Properties

These are all the public properties in the Solar_Controller_Page class.

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

$action
The short-name for the executed action, populated in _preRender().
$controller
The short-name for this controller, populated in _preRender().

Public Methods

These are all the public methods in the Solar_Controller_Page 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().
__get()
Try to force users to define what their view variables are.
__set()
Try to force users to define what their view variables are.
apiVersion()
Reports the API version for this class.
display()
Executes the requested action and displays its output.
dump()
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
fetch()
Executes the requested action and returns its output with layout.
locale()
Looks up class-specific locale strings based on a key.
setController()
Sets the name for this page-controller; generally used only by the front-controller when static routing leads to this page.
setFrontController()
Injects the front-controller object that invoked this page-controller.