/datadrive
/var
/www
/stageparking.unipark.lt
/test_deploy
/releases
/22
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Router
/Rewrite.php
}
// TODO: Should be an interface method. Hack for 1.0 BC
if (!method_exists($route, 'getVersion') || $route->getVersion() == 1) {
$match = $request->getPathInfo();
} else {
$match = $request;
}
if ($params = $route->match($match)) {
$this->_setRequestParams($request, $params);
$this->_currentRoute = $name;
$routeMatched = true;
break;
}
}
if (!$routeMatched) {
require_once 'Zend/Controller/Router/Exception.php';
throw new Zend_Controller_Router_Exception('No route matched the request', 404);
}
if ($this->_useCurrentParamsAsGlobal) {
$params = $request->getParams();
foreach ($params as $param => $value) {
$this->setGlobalParam($param, $value);
}
}
return $request;
}
/**
* Sets parameters for request object
*
* Module name, controller name and action name
*
* @param Zend_Controller_Request_Abstract $request
* @param array $params
*/
Arguments
"No route matched the request"
/datadrive
/var
/www
/stageparking.unipark.lt
/test_deploy
/releases
/22
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Front.php
/**
* Initialize dispatcher
*/
$dispatcher = $this->getDispatcher();
$dispatcher->setParams($this->getParams())
->setResponse($this->_response);
// Begin dispatch
try {
/**
* Route request to controller/action, if a router is provided
*/
/**
* Notify plugins of router startup
*/
$this->_plugins->routeStartup($this->_request);
try {
$router->route($this->_request);
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}
/**
* Notify plugins of router completion
*/
$this->_plugins->routeShutdown($this->_request);
/**
* Notify plugins of dispatch loop startup
*/
$this->_plugins->dispatchLoopStartup($this->_request);
/**
* Attempt to dispatch the controller/action. If the $this->_request
Arguments
Zend_Controller_Request_Http {}
/datadrive
/var
/www
/stageparking.unipark.lt
/test_deploy
/releases
/22
/vendor
/zendframework
/zendframework1
/library
/Zend
/Application
/Bootstrap
/Bootstrap.php
* exception is thrown.
*
* If so, it registers the bootstrap with the 'bootstrap' parameter of
* the front controller, and dispatches the front controller.
*
* @return mixed
* @throws Zend_Application_Bootstrap_Exception
*/
public function run()
{
$front = $this->getResource('FrontController');
$default = $front->getDefaultModule();
if (null === $front->getControllerDirectory($default)) {
throw new Zend_Application_Bootstrap_Exception(
'No default controller directory registered with front controller'
);
}
$front->setParam('bootstrap', $this);
$response = $front->dispatch();
if ($front->returnResponse()) {
return $response;
}
}
/**
* Set module resource loader
*
* @param Zend_Loader_Autoloader_Resource $loader
* @return Zend_Application_Module_Bootstrap
*/
public function setResourceLoader(Zend_Loader_Autoloader_Resource $loader)
{
$this->_resourceLoader = $loader;
return $this;
}
/**
* Retrieve module resource loader
*
/datadrive
/var
/www
/stageparking.unipark.lt
/test_deploy
/releases
/22
/vendor
/zendframework
/zendframework1
/library
/Zend
/Application.php
/**
* Bootstrap application
*
* @param null|string|array $resource
* @return Zend_Application
*/
public function bootstrap($resource = null)
{
$this->getBootstrap()->bootstrap($resource);
return $this;
}
/**
* Run the application
*
* @return void
*/
public function run()
{
$this->getBootstrap()->run();
}
/**
* Load configuration file of options
*
* @param string $file
* @throws Zend_Application_Exception When invalid configuration file is provided
* @return array
*/
protected function _loadConfig($file)
{
$environment = $this->getEnvironment();
$suffix = pathinfo($file, PATHINFO_EXTENSION);
$suffix = ($suffix === 'dist')
? pathinfo(basename($file, ".$suffix"), PATHINFO_EXTENSION)
: $suffix;
switch (strtolower($suffix)) {
case 'ini':
$config = new Zend_Config_Ini($file, $environment);
/datadrive
/var
/www
/stageparking.unipark.lt
/test_deploy
/releases
/22
/index.php
<?php
//date_default_timezone_set("Europe/Vilnius");
// Define path to application directory
defined( 'APPLICATION_PATH' ) || define( 'APPLICATION_PATH', realpath( dirname( __FILE__ ) . '/application' ) );
// Define application environment
defined( 'APPLICATION_ENV' ) || define( 'APPLICATION_ENV', (getenv( 'APPLICATION_ENV' ) ? getenv( 'APPLICATION_ENV' ) : 'development') );
require 'vendor/autoload.php';
/**
* Zend_Application
*/
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' );
$application->bootstrap()->run();
// set default time zone
$config = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$keySendGrid = $config->getOption('phpSettings');
$timezone = $keySendGrid['date']['timezone'];
date_default_timezone_set($timezone);