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
 1: <?php
 2: 
 3: /**
 4:  * Nette Framework (version 2.0.6 released on 2012-10-01, http://nette.org)
 5:  *
 6:  * Copyright (c) 2004, 2012 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: /**
15:  * Check and reset PHP configuration.
16:  */
17: error_reporting(E_ALL | E_STRICT);
18: @set_magic_quotes_runtime(FALSE); // @ - deprecated since PHP 5.3.0
19: iconv_set_encoding('internal_encoding', 'UTF-8');
20: extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
21: umask(0);
22: @header('X-Powered-By: Nette Framework'); // @ - headers may be sent
23: @header('Content-Type: text/html; charset=utf-8'); // @ - headers may be sent
24: 
25: 
26: 
27: /**
28:  * Load and configure Nette Framework.
29:  */
30: define('NETTE', TRUE);
31: define('NETTE_DIR', __DIR__);
32: define('NETTE_VERSION_ID', 20006); // v2.0.6
33: define('NETTE_PACKAGE', '5.3');
34: 
35: 
36: 
37: require_once __DIR__ . '/common/exceptions.php';
38: require_once __DIR__ . '/common/Object.php';
39: require_once __DIR__ . '/Utils/LimitedScope.php';
40: require_once __DIR__ . '/Loaders/AutoLoader.php';
41: require_once __DIR__ . '/Loaders/NetteLoader.php';
42: 
43: 
44: Nette\Loaders\NetteLoader::getInstance()->register();
45: 
46: require_once __DIR__ . '/Diagnostics/Helpers.php';
47: require_once __DIR__ . '/Diagnostics/shortcuts.php';
48: require_once __DIR__ . '/Utils/Html.php';
49: Nette\Diagnostics\Debugger::_init();
50: 
51: Nette\Utils\SafeStream::register();
52: 
53: 
54: 
55: /**
56:  * Nette\Callback factory.
57:  * @param  mixed   class, object, callable
58:  * @param  string  method
59:  * @return Nette\Callback
60:  */
61: function callback($callback, $m = NULL)
62: {
63:     return new Nette\Callback($callback, $m);
64: }
65: 
Nette Framework 2.0.6 API API documentation generated by ApiGen 2.7.0