Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gjero Krsteski  >  PIMF  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Application script
Class: PIMF
Framework for Web application development
Author: By
Last change: PIMF v1.6 possibility for modern and save #session management using storages like #APC #Memcached #PDO #DBA #Redis #File #framewrok #php #pimf
Date: 2013-02-16 14:00
Size: 756 bytes
 

Contents

Class file image Download
<?php
/*
|--------------------------------------------------------------------------
| PIMF Application gateway/runner
|--------------------------------------------------------------------------
*/

require_once 'bootstrap.php';

try{

  
Pimf_Application::run($_GET$_POST$_COOKIE);

} catch (
Pimf_Resolver_Exception $e){ // thrown by the user requests resolver

  
Pimf_Util_Header::sendNotFound($e->getMessage());

} catch (
Pimf_Controller_Exception $e){ // thrown by the controller

  
Pimf_Util_Header::sendNotFound($e->getMessage());

} catch (
Exception $e) { // finally fetch the remaining exceptions

  
Pimf_Util_Header::sendInternalServerError($e->getMessage());
  
Pimf_Registry::get('logger')->error($e->getMessage() . $e->getTraceAsString());
}