All pastes #88516 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-15 01:38 UTC
rendered paste body
<?php
/**
 * @ignore
 */
define('__APP_PATH',	substr(__FILE__, 0, -strlen(basename(__FILE__))));
require __APP_PATH . 'lib/common.php';

/**
 * Zend_Controller_Router
 * 
 * @var $router
 */
$router = new Zend_Controller_RewriteRouter();
$router->setRewriteBase('/phpTicket/');
$router->addRoute('default', '', array('controller' => 'index', 'action' => 'index'));

/**
 * Zend_Controller
 * 
 * @var $control
 */
$control = Zend_Controller_Front::getInstance();
$control->setRouter($router);
$control->setControllerDirectory(__APP_PATH . 'lib/controls/public');
$control->dispatch();