Module.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • application/
  • error/
  • Module.php
  • View
  • Commits
  • Open Download .zip Download (765 B)
<?php
/**
 * Register the error module as the error handler.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class Error_Module extends P4Cms_Module_Integration
{
    /**
     * Reconfigure the error handler plugin.
     */
    public static function load()
    {
        $front = Zend_Controller_Front::getInstance();
        $front->registerPlugin(
            new Zend_Controller_Plugin_ErrorHandler(
                array(
                    'module'     => 'error',
                    'controller' => 'index',
                    'action'     => 'error',
                )
            ),
            100
        );
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/application/error/Module.php
#1 8972 Matt Attaway Initial add of the Chronicle source code