Tiger_Controller_Plugin_PageDispatch

@api · extends Zend_Controller_Plugin_Abstract

Tiger_Controller_Plugin_PageDispatch — route unmatched URLs to CMS pages.

At routeShutdown (after routing, before dispatch) this checks ONLY requests that did not resolve to a real controller — i.e. ones that would otherwise 404. If the path matches a published page row it hands off to PageController::viewAction; if it matches a page_redirect it 301s; otherwise it leaves the request untouched so ZF's ErrorHandler renders a clean 404.

Real controllers (/admin, /api, /auth, the / landing) are dispatchable, so they're never intercepted. This is the WordPress-style "if nothing else claims the URL, ask the content store" fallback — but explicit and non-greedy.

Runs after LocalePrefix (so the path is locale-stripped and LANG is set) and before the authorization plugin (which then gates PageController — public in acl.ini). Public pages resolve at global scope for now; per-tenant public sites (host -> org) are a later addition.

Methods

routeShutdown()

routeShutdown(Zend_Controller_Request_Abstract $request)

Route an otherwise-unmatched URL to a published CMS page, or 301 a moved slug.

  • $request Zend_Controller_Request_Abstract — the current request