Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Functions

  • callback
  • dump
  • Overview
  • Namespace
  • Function
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: /**
 4:  * Nette Framework (version 2.0.12 released on 2013-08-08, http://nette.org)
 5:  *
 6:  * Copyright (c) 2004, 2013 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: 
13: /**
14:  * Check and reset PHP configuration.
15:  */
16: error_reporting(E_ALL | E_STRICT);
17: @set_magic_quotes_runtime(FALSE); // @ - deprecated since PHP 5.3.0
18: iconv_set_encoding('internal_encoding', 'UTF-8');
19: extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
20: umask(0);
21: @header('X-Powered-By: Nette Framework'); // @ - headers may be sent
22: @header('Content-Type: text/html; charset=utf-8'); // @ - headers may be sent
23: 
24: 
25: /**
26:  * Load and configure Nette Framework.
27:  */
28: define('NETTE', TRUE);
29: define('NETTE_DIR', __DIR__);
30: define('NETTE_VERSION_ID', 20012); // v2.0.12
31: define('NETTE_PACKAGE', '5.3');
32: 
33: 
34: require_once __DIR__ . '/common/exceptions.php';
35: require_once __DIR__ . '/common/Object.php';
36: require_once __DIR__ . '/Utils/LimitedScope.php';
37: require_once __DIR__ . '/Loaders/AutoLoader.php';
38: require_once __DIR__ . '/Loaders/NetteLoader.php';
39: 
40: 
41: Nette\Loaders\NetteLoader::getInstance()->register();
42: 
43: require_once __DIR__ . '/Diagnostics/Helpers.php';
44: require_once __DIR__ . '/Diagnostics/shortcuts.php';
45: require_once __DIR__ . '/Utils/Html.php';
46: Nette\Diagnostics\Debugger::_init();
47: 
48: Nette\Utils\SafeStream::register();
49: 
50: class_alias('Nette\Config\Configurator', 'Nette\Configurator');
51: 
52: 
53: /**
54:  * Nette\Callback factory.
55:  * @param  mixed   class, object, callable
56:  * @param  string  method
57:  * @return Nette\Callback
58:  */
59: function callback($callback, $m = NULL)
60: {
61:     return new Nette\Callback($callback, $m);
62: }
63: 
Nette Framework 2.0.12 API API documentation generated by ApiGen 2.8.0