|
From: <pan...@us...> - 2009-03-02 18:45:49
|
Revision: 518
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=518&view=rev
Author: panzaboi
Date: 2009-03-02 18:45:44 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
speed increase
Modified Paths:
--------------
website/library/Application.php
Modified: website/library/Application.php
===================================================================
--- website/library/Application.php 2009-03-01 19:43:32 UTC (rev 517)
+++ website/library/Application.php 2009-03-02 18:45:44 UTC (rev 518)
@@ -28,6 +28,12 @@
{
return (microtime(true) - self::$_start);
}
+
+ public static function autoload($path)
+ {
+ include str_replace('_','/',$path) . '.php';
+ return $path;
+ }
public function setEnvironment($environment)
{
@@ -62,8 +68,9 @@
protected function _initialize()
{
// Auto-loader
- require_once 'Zend/Loader.php';
- Zend_Loader::registerAutoload();
+ //require_once 'Zend/Loader.php';
+ //Zend_Loader::registerAutoload();
+ spl_autoload_register(array('Application', 'autoload'));
// Setup Session
Zend_Session::start();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|