コード例 #1
0
    jf\ErrorHandler::$Enabled = false;
    //disable it if embedded or CLI because another system is handling it.
} else {
    jf\ErrorHandler::$Enabled = true;
    //Enables jframework's built-in error handler
}
jf::$ErrorHandler->SetErrorHandler();
if (jf::$RunMode->IsDevelop()) {
    jf\ErrorHandler::$PresentErrors = true;
} else {
    jf\ErrorHandler::$PresentErrors = false;
}
/**
 * Bandwidth Management
 *
 * jframework handles all file feeds and downloads manually.
 * Its FileManager has the ability to limit download speed of files larger than a specific size.
 * Set both the initial size and the limit here.
 */
jf\DownloadManager::$BandwidthLimitInitialSize = -1;
# negative number disables it
jf\DownloadManager::$BandwidthLimitSpeed = 1024 * 1024;
/**
 * Iterative Templates
 *
 * If this is set, jframework viewer would look into the view folder and all its ancestor folders
 * to find a template folder, and would display the first template it finds.
 * Otherwise only the same folder is checked for templates.
 */
jf\View::$IterativeTemplates = true;
jf::import("config/more");