Permalink
Browse files

initial commit moved from lithium_examples

  • Loading branch information...
1 parent 08b6258 commit 75ef461e8faccdc9565dfdbd0101b5a8fb441b89 @gwoo gwoo committed Oct 22, 2009
Showing with 44,992 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 .htaccess
  3. +212 −0 config/bootstrap.php
  4. +83 −0 config/connections.php
  5. +57 −0 config/environments.php
  6. +31 −0 config/environments/development.php
  7. +39 −0 config/routes.php
  8. 0 config/schema/empty
  9. +63 −0 config/switchboard.php
  10. +30 −0 controllers/PagesController.php
  11. +83 −0 controllers/PastesController.php
  12. 0 extensions/adapters/empty
  13. 0 extensions/behaviors/empty
  14. 0 extensions/commands/empty
  15. 0 extensions/components/empty
  16. +27 −0 extensions/data/source/http/adapter/Couch.php
  17. 0 extensions/g11n/empty
  18. +349 −0 extensions/helpers/Menu.php
  19. +15 −0 index.php
  20. 0 libraries/empty
  21. +4,644 −0 libraries/geshi/geshi.php
  22. +1,409 −0 libraries/geshi/geshi/abap.php
  23. +197 −0 libraries/geshi/geshi/actionscript.php
  24. +473 −0 libraries/geshi/geshi/actionscript3.php
  25. +133 −0 libraries/geshi/geshi/ada.php
  26. +480 −0 libraries/geshi/geshi/apache.php
  27. +157 −0 libraries/geshi/geshi/applescript.php
  28. +144 −0 libraries/geshi/geshi/apt_sources.php
  29. +225 −0 libraries/geshi/geshi/asm.php
  30. +164 −0 libraries/geshi/geshi/asp.php
  31. +1,171 −0 libraries/geshi/geshi/autoit.php
  32. +194 −0 libraries/geshi/geshi/avisynth.php
  33. +282 −0 libraries/geshi/geshi/bash.php
  34. +341 −0 libraries/geshi/geshi/basic4gl.php
  35. +114 −0 libraries/geshi/geshi/bf.php
  36. +183 −0 libraries/geshi/geshi/bibtex.php
  37. +185 −0 libraries/geshi/geshi/blitzbasic.php
  38. +110 −0 libraries/geshi/geshi/bnf.php
  39. +217 −0 libraries/geshi/geshi/boo.php
  40. +188 −0 libraries/geshi/geshi/c.php
  41. +212 −0 libraries/geshi/geshi/c_mac.php
  42. +126 −0 libraries/geshi/geshi/caddcl.php
  43. +186 −0 libraries/geshi/geshi/cadlisp.php
  44. +124 −0 libraries/geshi/geshi/cfdg.php
  45. +299 −0 libraries/geshi/geshi/cfm.php
  46. +196 −0 libraries/geshi/geshi/cil.php
  47. +181 −0 libraries/geshi/geshi/cmake.php
  48. +244 −0 libraries/geshi/geshi/cobol.php
  49. +315 −0 libraries/geshi/geshi/cpp-qt.php
  50. +226 −0 libraries/geshi/geshi/cpp.php
  51. +250 −0 libraries/geshi/geshi/csharp.php
  52. +212 −0 libraries/geshi/geshi/css.php
  53. +272 −0 libraries/geshi/geshi/d.php
  54. +185 −0 libraries/geshi/geshi/dcs.php
  55. +289 −0 libraries/geshi/geshi/delphi.php
  56. +196 −0 libraries/geshi/geshi/diff.php
  57. +126 −0 libraries/geshi/geshi/div.php
  58. +198 −0 libraries/geshi/geshi/dos.php
  59. +164 −0 libraries/geshi/geshi/dot.php
  60. +395 −0 libraries/geshi/geshi/eiffel.php
  61. +209 −0 libraries/geshi/geshi/email.php
  62. +441 −0 libraries/geshi/geshi/erlang.php
  63. +327 −0 libraries/geshi/geshi/fo.php
  64. +160 −0 libraries/geshi/geshi/fortran.php
  65. +141 −0 libraries/geshi/geshi/freebasic.php
  66. +463 −0 libraries/geshi/geshi/genero.php
  67. +97 −0 libraries/geshi/geshi/gettext.php
  68. +205 −0 libraries/geshi/geshi/glsl.php
  69. +506 −0 libraries/geshi/geshi/gml.php
  70. +296 −0 libraries/geshi/geshi/gnuplot.php
  71. +1,011 −0 libraries/geshi/geshi/groovy.php
  72. +198 −0 libraries/geshi/geshi/haskell.php
  73. +104 −0 libraries/geshi/geshi/hq9plus.php
  74. +203 −0 libraries/geshi/geshi/html4strict.php
  75. +123 −0 libraries/geshi/geshi/idl.php
  76. +128 −0 libraries/geshi/geshi/ini.php
  77. +212 −0 libraries/geshi/geshi/inno.php
  78. +122 −0 libraries/geshi/geshi/intercal.php
  79. +138 −0 libraries/geshi/geshi/io.php
  80. +983 −0 libraries/geshi/geshi/java.php
  81. +1,031 −0 libraries/geshi/geshi/java5.php
  82. +150 −0 libraries/geshi/geshi/javascript.php
  83. +329 −0 libraries/geshi/geshi/kixtart.php
  84. +282 −0 libraries/geshi/geshi/klonec.php
  85. +310 −0 libraries/geshi/geshi/klonecpp.php
  86. +218 −0 libraries/geshi/geshi/latex.php
  87. +144 −0 libraries/geshi/geshi/lisp.php
  88. +130 −0 libraries/geshi/geshi/locobasic.php
  89. +152 −0 libraries/geshi/geshi/lolcode.php
  90. +318 −0 libraries/geshi/geshi/lotusformulas.php
  91. +191 −0 libraries/geshi/geshi/lotusscript.php
  92. +387 −0 libraries/geshi/geshi/lscript.php
  93. +898 −0 libraries/geshi/geshi/lsl2.php
  94. +137 −0 libraries/geshi/geshi/lua.php
  95. +143 −0 libraries/geshi/geshi/m68k.php
  96. +151 −0 libraries/geshi/geshi/make.php
  97. +227 −0 libraries/geshi/geshi/matlab.php
  98. +171 −0 libraries/geshi/geshi/mirc.php
  99. +135 −0 libraries/geshi/geshi/modula3.php
  100. +164 −0 libraries/geshi/geshi/mpasm.php
  101. +145 −0 libraries/geshi/geshi/mxml.php
  102. +475 −0 libraries/geshi/geshi/mysql.php
  103. +351 −0 libraries/geshi/geshi/nsis.php
  104. +135 −0 libraries/geshi/geshi/oberon2.php
  105. +358 −0 libraries/geshi/geshi/objc.php
  106. +112 −0 libraries/geshi/geshi/ocaml-brief.php
  107. +174 −0 libraries/geshi/geshi/ocaml.php
  108. +135 −0 libraries/geshi/geshi/oobas.php
  109. +614 −0 libraries/geshi/geshi/oracle11.php
  110. +496 −0 libraries/geshi/geshi/oracle8.php
  111. +152 −0 libraries/geshi/geshi/pascal.php
  112. +302 −0 libraries/geshi/geshi/per.php
  113. +213 −0 libraries/geshi/geshi/perl.php
  114. +222 −0 libraries/geshi/geshi/php-brief.php
  115. +1,114 −0 libraries/geshi/geshi/php.php
  116. +141 −0 libraries/geshi/geshi/pic16.php
  117. +176 −0 libraries/geshi/geshi/pixelbender.php
  118. +256 −0 libraries/geshi/geshi/plsql.php
  119. +199 −0 libraries/geshi/geshi/povray.php
  120. +277 −0 libraries/geshi/geshi/powershell.php
  121. +485 −0 libraries/geshi/geshi/progress.php
  122. +143 −0 libraries/geshi/geshi/prolog.php
  123. +127 −0 libraries/geshi/geshi/properties.php
  124. +299 −0 libraries/geshi/geshi/providex.php
  125. +237 −0 libraries/geshi/geshi/python.php
  126. +151 −0 libraries/geshi/geshi/qbasic.php
  127. +406 −0 libraries/geshi/geshi/rails.php
  128. +196 −0 libraries/geshi/geshi/rebol.php
  129. +233 −0 libraries/geshi/geshi/reg.php
  130. +98 −0 libraries/geshi/geshi/robots.php
  131. +226 −0 libraries/geshi/geshi/ruby.php
  132. +290 −0 libraries/geshi/geshi/sas.php
  133. +122 −0 libraries/geshi/geshi/scala.php
  134. +170 −0 libraries/geshi/geshi/scheme.php
  135. +295 −0 libraries/geshi/geshi/scilab.php
  136. +165 −0 libraries/geshi/geshi/sdlbasic.php
  137. +160 −0 libraries/geshi/geshi/smalltalk.php
  138. +192 −0 libraries/geshi/geshi/smarty.php
  139. +140 −0 libraries/geshi/geshi/sql.php
  140. +194 −0 libraries/geshi/geshi/tcl.php
  141. +317 −0 libraries/geshi/geshi/teraterm.php
  142. +84 −0 libraries/geshi/geshi/text.php
  143. +868 −0 libraries/geshi/geshi/thinbasic.php
  144. +375 −0 libraries/geshi/geshi/tsql.php
  145. +300 −0 libraries/geshi/geshi/typoscript.php
  146. +133 −0 libraries/geshi/geshi/vb.php
  147. +201 −0 libraries/geshi/geshi/vbnet.php
  148. +173 −0 libraries/geshi/geshi/verilog.php
  149. +144 −0 libraries/geshi/geshi/vhdl.php
  150. +185 −0 libraries/geshi/geshi/vim.php
  151. +456 −0 libraries/geshi/geshi/visualfoxpro.php
  152. +129 −0 libraries/geshi/geshi/visualprolog.php
  153. +121 −0 libraries/geshi/geshi/whitespace.php
  154. +181 −0 libraries/geshi/geshi/whois.php
  155. +369 −0 libraries/geshi/geshi/winbatch.php
  156. +157 −0 libraries/geshi/geshi/xml.php
  157. +124 −0 libraries/geshi/geshi/xorg_conf.php
  158. +436 −0 libraries/geshi/geshi/xpp.php
  159. +144 −0 libraries/geshi/geshi/z80.php
  160. 0 libraries/plugins/empty
  161. +177 −0 models/Paste.php
  162. 0 tests/cases/controllers/empty
  163. 0 tests/cases/extensions/adapters/empty
  164. 0 tests/cases/extensions/behaviors/empty
  165. 0 tests/cases/extensions/commands/empty
  166. 0 tests/cases/extensions/components/empty
  167. 0 tests/cases/extensions/data_sources/empty
  168. 0 tests/cases/extensions/helpers/empty
  169. 0 tests/cases/models/empty
  170. 0 tests/fixtures/empty
  171. 0 tests/groups/empty
  172. 0 tmp/cache/empty
  173. 0 tmp/logs/empty
  174. 0 views/elements/empty
  175. +15 −0 views/layouts/default.ajax.php
  176. +22 −0 views/layouts/default.email.html.php
  177. +15 −0 views/layouts/default.email.txt.php
  178. +47 −0 views/layouts/default.html.php
  179. +14 −0 views/layouts/default.xml.php
  180. +33 −0 views/layouts/flash.html.php
  181. +27 −0 views/pages/home.html.php
  182. +63 −0 views/pastes/form.html.php
  183. +13 −0 views/pastes/index.html.php
  184. +56 −0 views/pastes/view.html.php
  185. +7 −0 webroot/.htaccess
  186. BIN webroot/ZeroClipboard.swf
  187. +38 −0 webroot/css/base.css
  188. +106 −0 webroot/css/bin.css
  189. +304 −0 webroot/css/debug.css
  190. +54 −0 webroot/css/syntax.html.css
  191. +58 −0 webroot/css/syntax.javascript.css
  192. +58 −0 webroot/css/syntax.php.css
  193. BIN webroot/favicon.ico
  194. BIN webroot/img/accent.png
  195. 0 webroot/img/empty
  196. BIN webroot/img/favicon.png
  197. BIN webroot/img/lithium-logo.png
  198. +28 −0 webroot/index.php
  199. +290 −0 webroot/js/ZeroClipboard.js
  200. +19 −0 webroot/js/jquery-1.3.2.min.js
  201. +138 −0 webroot/test.php
View
@@ -0,0 +1 @@
+.DS_Store
View
@@ -0,0 +1,5 @@
+<IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteRule ^$ webroot/ [L]
+ RewriteRule (.*) webroot/$1 [L]
+ </IfModule>
View
@@ -0,0 +1,212 @@
+<?php
+/**
+ * Lithium: the most rad php framework
+ * Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ *
+ * Licensed under The BSD License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ * @license http://opensource.org/licenses/bsd-license.php The BSD License
+ */
+
+namespace lithium;
+
+use \lithium\core\Environment;
+use \lithium\core\Libraries;
+
+/**
+ * This is the path to the class libraries used by your application, and must contain a copy of the
+ * Lithium core. By default, this directory is named 'libraries', and resides in the same
+ * directory as your application. If you use the same libraries in multiple applications, you can
+ * set this to a shared path on your server.
+ */
+define('LITHIUM_LIBRARY_PATH', dirname(dirname(dirname(__DIR__))) . '/lithium/libraries');
+
+/**
+ * This is the path to your application's directory. It contains all the sub-folders for your
+ * application's classes and files. You don't need to change this unless your webroot folder is
+ * stored outside of your app folder.
+ */
+define('LITHIUM_APP_PATH', dirname(__DIR__));
+
+/**
+ * Locate and load Lithium core library files. Throws a fatal error if the core can't be found.
+ * If your Lithium core directory is named something other than 'lithium', change the string below.
+ */
+if (!include LITHIUM_LIBRARY_PATH . '/lithium/core/Libraries.php') {
+ $message = "Lithium core could not be found. Check the value of LITHIUM_LIBRARY_PATH in ";
+ $message .= "config/bootstrap.php. It should point to the directory containing your ";
+ $message .= "/libraries directory.";
+ trigger_error($message, E_USER_ERROR);
+}
+
+/**
+ * Add the Lithium core library. This sets default paths and initializes the autoloader. You
+ * generally should not need to override any settings.
+ */
+Libraries::add('lithium');
+
+/**
+ * Optimize default request cycle by loading common classes. If you're implementing custom
+ * request/response or dispatch classes, you can safely remove these. Actually, you can safely
+ * remove them anyway, they're just there to give slightly you better out-of-the-box performance.
+ */
+require LITHIUM_LIBRARY_PATH . '/lithium/core/Object.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/core/StaticObject.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/util/Collection.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/util/collection/Filters.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/util/Inflector.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/util/Set.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/util/String.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/core/Environment.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/http/Base.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/http/Media.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/http/Request.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/http/Response.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/http/Route.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/action/Controller.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/action/Dispatcher.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/action/Request.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/action/Response.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/template/View.php';
+require LITHIUM_LIBRARY_PATH . '/lithium/template/view/Renderer.php';
+
+/**
+ * Add the application. You can pass a `'path'` key here if this bootstrap file is outside of
+ * your main application, but generally you should not need to change any settings.
+ */
+Libraries::add('app');
+
+/**
+ * Add some plugins
+ */
+// Libraries::add('plugin', 'docs');
+
+/**
+ * This configures your session storage. The Cookie storage adapter must be connected first, since
+ * it intercepts any writes where the `'expires'` key is set in the options array. When creating a
+ * new application, it is suggested that you change the value of `'key'` below.
+ */
+
+/**
+* Session configuration
+*/
+// use \lithium\storage\Session;
+//
+// Session::config(array(
+// 'cookie' => array(
+// 'adapter' => 'Cookie',
+// 'name' => 'AppCookieName',
+// 'expires' => '+5 days',
+// 'domain' => '',
+// 'path' => '/',
+// 'filters' => array(
+// // 'Encryption' => array('key' => '0409448a5206980ab15682c3281c1a3b1fb10c55')
+// )
+// ),
+// 'default' => array('adapter' => 'Php', 'filters' => array())
+// ));
+
+/**
+ * To enable admin or plugin routing, uncomment the following lines, and see `app/config/routes.php`
+ * to enable the admin routing namespace.
+ */
+// use \lithium\action\Dispatcher;
+//
+// Dispatcher::config(array('rules' => array(
+// 'admin' => array('action' => 'admin_{:action}'),
+// 'plugin' => array('controller' => '{:plugin}.{:controller}')
+// )));
+
+/**
+ * Uncomment to set globalization defaults. A locale consists of a language and
+ * an optional territory code i.e. `'en_US'` or `'en'`. For timezone specify
+ * a valid timezone identifier i.e. `'America/New_York'` or `'Etc/UTC'`. You may
+ * also specify additional sources for retrieving translated and messages and
+ * localized data or add rules, formats, messages or lists data right here.
+ */
+// use \lithium\g11n\G11n;
+//
+// G11n::locale('en');
+// G11n::timezone('Etc/UTC');
+// G11n::sources(LITHIUM_APP_PATH . '/extensions/g11n');
+// G11n::rules('plural', array('en' => function($n) { return $n != 1 ? 1 : 0; }));
+
+/*
+ * Inflector configuration example. If your application has custom singular or plural rules, or
+ * extra non-ASCII characters to transliterate, you can configure that by uncommenting the lines
+ * below.
+ */
+// use lithium\util\Inflector;
+//
+// Inflector::rules("plural", array(
+// '/(s)tatus$/i' => '\1\2tatuses',
+// '/^(ox)$/i' => '\1\2en',
+// '/([m|l])ouse$/i' => '\1ice'
+// ));
+//
+// Inflector::rules("uninflectedPlural", array('.*[nrlm]ese', '.*deer', '.*ois', '.*pox'));
+//
+// Inflector::rules("irregularPlural", array('atlas' => 'atlases', 'brother' => 'brothers'));
+//
+// Inflector::rules("singular", array(
+// '/(s)tatuses$/i' => '\1\2tatus',
+// '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i'
+// ));
+
+/**
+ * Globalization (g11n) catalog configuration. The catalog allows for obtaining and
+ * writing globalized data. Each configuration can be adjusted through the following settings:
+ *
+ * - `'adapter' The name of a supported adapter. The builtin adapters are _memory_ (a
+ * simple adapter good for runtime data and testing), _gettext_, _cldr_ (for
+ * interfacing with Unicode's common locale data repository) and _code_ (used mainly for
+ * extracting message templates from source code).
+ *
+ * - `'path'` All adapters with the exception of the _memory_ adapter require a directory
+ * which holds the data.
+ *
+ * - `'scope'` If you plan on using scoping i.e. for accessing plugin data separately you
+ * need to specify a scope for each configuration, except for those using the _memory_ or
+ * _gettext_ adapter which handle this internally.
+ */
+// use lithium\g11n\Catalog;
+//
+// Catalog::config(array(
+// 'runtime' => array('adapter' => 'Memory'),
+// 'app' => array('adapter' => 'Gettext', 'path' => LITHIUM_APP_PATH . '/resources/po'),
+// 'lithium' => array('adapter' => 'Gettext', 'path' => LITHIUM_LIBRARY_PATH . '/lithium/resources/po')
+// ));
+
+/**
+ * Globalization runtime data. You can add globalized data during runtime utilizing a
+ * configuration set up to use the _memory_ adapter.
+ */
+// $data = array('en' => function($n) { return $n != 1 ? 1 : 0; });
+// Catalog::write('message.plural', $data, array('name' => 'runtime'));
+
+/**
+ * Enabling globalization integration. Classes in the framework are designed with
+ * globalization in mind. To enable globalization for these classes we just need to pass
+ * the needed data into them.
+ */
+// use lithium\util\Validator;
+// use lithium\util\Inflector;
+//
+// Validator::add('postalCode',
+// Catalog::read('validation.postalCode', array('en_US'))
+// );
+// Inflector::rules('transliterations',
+// Catalog::read('inflection.transliteration', array('en'))
+// );
+
+/**
+ * Your custom code goes here.
+ */
+Libraries::add('geshi', array(
+ 'path' => LITHIUM_APP_PATH. '/libraries/geshi',
+ 'prefix' => 'Geshi',
+ 'bootstrap' => 'geshi.php'
+));
+?>
@@ -0,0 +1,83 @@
+<?php
+/**
+ * Lithium: the most rad php framework
+ * Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ *
+ * Licensed under The BSD License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ * @license http://opensource.org/licenses/bsd-license.php The BSD License
+ */
+
+use \lithium\data\Connections;
+
+/**
+ * Database configuration.
+ * You can specify multiple configurations for production, development and testing.
+ *
+ * adapter => The name of a supported driver; valid options are as follows:
+ * mysql - MySQL 4 & 5,
+ * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
+ * sqlite - SQLite (PHP5 only),
+ * postgres - PostgreSQL 7 and higher,
+ * mssql - Microsoft SQL Server 2000 and higher,
+ * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
+ * oracle - Oracle 8 and higher
+ * firebird - Firebird/Interbase
+ * sybase - Sybase ASE
+ *
+ * You can add custom database drivers (or override existing drivers) by adding the
+ * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
+ * where 'x' is the name of the database.
+ *
+ * persistent => true / false
+ * Determines whether or not the database should use a persistent connection.
+ *
+ * host =>
+ * the host you connect to the database. To add a socket or port number, use 'port' => #
+ *
+ * prefix =>
+ * Uses the given prefix for all the tables in this database. This setting can be overridden
+ * on a per-table basis with the Model::$_meta['prefix'] property.
+ *
+ * schema =>
+ * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres
+ * defaults to 'public', DB2 defaults to empty.
+ *
+ * encoding =>
+ * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting
+ * to the database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
+ */
+Connections::add('default', 'Database', array(
+ // 'development' => array(
+ 'adapter' => 'MySql',
+ 'host' => 'localhost',
+ 'login' => 'root',
+ 'password' => '',
+ 'database' => 'lithium-blog'
+ // 'adapter' => 'sqlite',
+ // 'database' => LITHIUM_APP_PATH . '/tmp/default.db'
+ // ),
+ // 'test' => array(
+ // 'adapter' => 'mysql',
+ // 'host' => 'localhost',
+ // 'login' => 'user',
+ // 'password' => 'password',
+ // 'database' => 'test_database_name'
+ // ),
+ // 'production' => array(
+ // 'adapter' => 'mysql',
+ // 'host' => 'localhost',
+ // 'login' => 'user',
+ // 'password' => 'password',
+ // 'database' => 'test_database_name'
+ // )
+));
+
+Connections::add('couch', 'http', array(
+ 'adapter' => 'Couch',
+ 'host' => '127.0.0.1',
+ 'port' => 5984,
+));
+?>
@@ -0,0 +1,57 @@
+<?php
+/**
+ * Lithium: the most rad php framework
+ * Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ *
+ * Licensed under The BSD License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2009, Union of Rad, Inc. (http://union-of-rad.org)
+ * @license http://opensource.org/licenses/bsd-license.php The BSD License
+ */
+
+use \lithium\core\Libraries;
+use \lithium\core\Environment;
+
+/*
+ * Set up the "development" environment
+ */
+Environment::set("development", array(
+ "Output.varDump" => true, // Writes output from pr() and debug()
+ "Output.sqlDump" => true, // Writes SQL log at the bottom of the page
+ "Output.timestamp.enabled" => true, // Output the page generation time
+ "Output.timestamp.format" => "<!-- %01.4fs -->", // Page generation time output format string
+ "Cache.enabled" => true,
+ "Cache.expires" => "+10 seconds",
+ "Asset.compress" => false,
+ "Asset.timestamp" => true
+));
+
+/*
+ * Set the current environment to "development"
+ */
+
+Environment::set("development");
+
+/*
+ * Inflector configuration example
+ */
+// Inflector::add("plural", array(
+// '/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice'
+// ));
+// Inflector::add("uninflectedPlural", array(
+// '.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox'
+// ));
+// Inflector::add("irregularPlural", array(
+// 'atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers'
+// ));
+// Inflector::add("singular", array(
+// '/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i'
+// ));
+
+/*
+ * Paths configuration example
+ */
+// Libraries::addPluginPath("/path/to/more/plugins");
+
+?>
Oops, something went wrong.

0 comments on commit 75ef461

Please sign in to comment.