├── .gitignore ├── .htaccess ├── README.md ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── memcached.php │ ├── migration.php │ ├── mimes.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── General.php │ ├── api │ │ ├── Ajax.php │ │ └── index.html │ └── index.html ├── core │ ├── MY_Controller.php │ ├── MY_Model.php │ └── index.html ├── helpers │ ├── index.html │ └── print_helper.php ├── hooks │ ├── Layout.php │ └── index.html ├── index.html ├── language │ ├── english │ │ └── index.html │ └── index.html ├── libraries │ └── index.html ├── logs │ └── index.html ├── models │ ├── Api_model.php │ └── index.html ├── third_party │ └── index.html └── views │ ├── errors │ ├── cli │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ ├── html │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ └── index.html │ ├── example │ └── index.php │ ├── general │ └── index.php │ ├── index.html │ ├── layout │ ├── default.php │ └── highlight.php │ └── templates │ ├── footer.php │ └── header.php ├── composer.json ├── css ├── global.css ├── normalize.css └── test.css ├── favicon.ico ├── index.php ├── js ├── .DS_Store ├── app │ ├── collections │ │ └── ExampleCollection.js │ ├── models │ │ └── ExampleModel.js │ └── views │ │ └── ExampleView.js ├── global.js ├── home.js ├── libs │ ├── backbone.js │ ├── full_js │ │ ├── backbone.js │ │ ├── hogan.js │ │ ├── jquery-ui.js │ │ ├── jquery.js │ │ ├── modernizr.js │ │ ├── require.js │ │ └── underscore.js │ ├── hogan.js │ ├── jquery-ui.min.js │ ├── jquery.min.js │ ├── modernizr.js │ ├── require.js │ └── underscore.js ├── main.js └── module │ └── Example.js ├── license.txt ├── system ├── .htaccess ├── core │ ├── Benchmark.php │ ├── CodeIgniter.php │ ├── Common.php │ ├── Config.php │ ├── Controller.php │ ├── Exceptions.php │ ├── Hooks.php │ ├── Input.php │ ├── Lang.php │ ├── Loader.php │ ├── Log.php │ ├── Model.php │ ├── Output.php │ ├── Router.php │ ├── Security.php │ ├── URI.php │ ├── Utf8.php │ ├── compat │ │ ├── hash.php │ │ ├── index.html │ │ ├── mbstring.php │ │ ├── password.php │ │ └── standard.php │ └── index.html ├── database │ ├── DB.php │ ├── DB_cache.php │ ├── DB_driver.php │ ├── DB_forge.php │ ├── DB_query_builder.php │ ├── DB_result.php │ ├── DB_utility.php │ ├── drivers │ │ ├── cubrid │ │ │ ├── cubrid_driver.php │ │ │ ├── cubrid_forge.php │ │ │ ├── cubrid_result.php │ │ │ ├── cubrid_utility.php │ │ │ └── index.html │ │ ├── ibase │ │ │ ├── ibase_driver.php │ │ │ ├── ibase_forge.php │ │ │ ├── ibase_result.php │ │ │ ├── ibase_utility.php │ │ │ └── index.html │ │ ├── index.html │ │ ├── mssql │ │ │ ├── index.html │ │ │ ├── mssql_driver.php │ │ │ ├── mssql_forge.php │ │ │ ├── mssql_result.php │ │ │ └── mssql_utility.php │ │ ├── mysql │ │ │ ├── index.html │ │ │ ├── mysql_driver.php │ │ │ ├── mysql_forge.php │ │ │ ├── mysql_result.php │ │ │ └── mysql_utility.php │ │ ├── mysqli │ │ │ ├── index.html │ │ │ ├── mysqli_driver.php │ │ │ ├── mysqli_forge.php │ │ │ ├── mysqli_result.php │ │ │ └── mysqli_utility.php │ │ ├── oci8 │ │ │ ├── index.html │ │ │ ├── oci8_driver.php │ │ │ ├── oci8_forge.php │ │ │ ├── oci8_result.php │ │ │ └── oci8_utility.php │ │ ├── odbc │ │ │ ├── index.html │ │ │ ├── odbc_driver.php │ │ │ ├── odbc_forge.php │ │ │ ├── odbc_result.php │ │ │ └── odbc_utility.php │ │ ├── pdo │ │ │ ├── index.html │ │ │ ├── pdo_driver.php │ │ │ ├── pdo_forge.php │ │ │ ├── pdo_result.php │ │ │ ├── pdo_utility.php │ │ │ └── subdrivers │ │ │ │ ├── index.html │ │ │ │ ├── pdo_4d_driver.php │ │ │ │ ├── pdo_4d_forge.php │ │ │ │ ├── pdo_cubrid_driver.php │ │ │ │ ├── pdo_cubrid_forge.php │ │ │ │ ├── pdo_dblib_driver.php │ │ │ │ ├── pdo_dblib_forge.php │ │ │ │ ├── pdo_firebird_driver.php │ │ │ │ ├── pdo_firebird_forge.php │ │ │ │ ├── pdo_ibm_driver.php │ │ │ │ ├── pdo_ibm_forge.php │ │ │ │ ├── pdo_informix_driver.php │ │ │ │ ├── pdo_informix_forge.php │ │ │ │ ├── pdo_mysql_driver.php │ │ │ │ ├── pdo_mysql_forge.php │ │ │ │ ├── pdo_oci_driver.php │ │ │ │ ├── pdo_oci_forge.php │ │ │ │ ├── pdo_odbc_driver.php │ │ │ │ ├── pdo_odbc_forge.php │ │ │ │ ├── pdo_pgsql_driver.php │ │ │ │ ├── pdo_pgsql_forge.php │ │ │ │ ├── pdo_sqlite_driver.php │ │ │ │ ├── pdo_sqlite_forge.php │ │ │ │ ├── pdo_sqlsrv_driver.php │ │ │ │ └── pdo_sqlsrv_forge.php │ │ ├── postgre │ │ │ ├── index.html │ │ │ ├── postgre_driver.php │ │ │ ├── postgre_forge.php │ │ │ ├── postgre_result.php │ │ │ └── postgre_utility.php │ │ ├── sqlite │ │ │ ├── index.html │ │ │ ├── sqlite_driver.php │ │ │ ├── sqlite_forge.php │ │ │ ├── sqlite_result.php │ │ │ └── sqlite_utility.php │ │ ├── sqlite3 │ │ │ ├── index.html │ │ │ ├── sqlite3_driver.php │ │ │ ├── sqlite3_forge.php │ │ │ ├── sqlite3_result.php │ │ │ └── sqlite3_utility.php │ │ └── sqlsrv │ │ │ ├── index.html │ │ │ ├── sqlsrv_driver.php │ │ │ ├── sqlsrv_forge.php │ │ │ ├── sqlsrv_result.php │ │ │ └── sqlsrv_utility.php │ └── index.html ├── fonts │ ├── index.html │ └── texb.ttf ├── helpers │ ├── array_helper.php │ ├── captcha_helper.php │ ├── cookie_helper.php │ ├── date_helper.php │ ├── directory_helper.php │ ├── download_helper.php │ ├── email_helper.php │ ├── file_helper.php │ ├── form_helper.php │ ├── html_helper.php │ ├── index.html │ ├── inflector_helper.php │ ├── language_helper.php │ ├── number_helper.php │ ├── path_helper.php │ ├── security_helper.php │ ├── smiley_helper.php │ ├── string_helper.php │ ├── text_helper.php │ ├── typography_helper.php │ ├── url_helper.php │ └── xml_helper.php ├── index.html ├── language │ ├── english │ │ ├── calendar_lang.php │ │ ├── date_lang.php │ │ ├── db_lang.php │ │ ├── email_lang.php │ │ ├── form_validation_lang.php │ │ ├── ftp_lang.php │ │ ├── imglib_lang.php │ │ ├── index.html │ │ ├── migration_lang.php │ │ ├── number_lang.php │ │ ├── pagination_lang.php │ │ ├── profiler_lang.php │ │ ├── unit_test_lang.php │ │ └── upload_lang.php │ └── index.html └── libraries │ ├── Cache │ ├── Cache.php │ ├── drivers │ │ ├── Cache_apc.php │ │ ├── Cache_dummy.php │ │ ├── Cache_file.php │ │ ├── Cache_memcached.php │ │ ├── Cache_redis.php │ │ ├── Cache_wincache.php │ │ └── index.html │ └── index.html │ ├── Calendar.php │ ├── Cart.php │ ├── Driver.php │ ├── Email.php │ ├── Encrypt.php │ ├── Encryption.php │ ├── Form_validation.php │ ├── Ftp.php │ ├── Image_lib.php │ ├── Javascript.php │ ├── Migration.php │ ├── Pagination.php │ ├── Parser.php │ ├── Profiler.php │ ├── Session │ ├── Session.php │ ├── SessionHandlerInterface.php │ ├── Session_driver.php │ ├── drivers │ │ ├── Session_database_driver.php │ │ ├── Session_files_driver.php │ │ ├── Session_memcached_driver.php │ │ ├── Session_redis_driver.php │ │ └── index.html │ └── index.html │ ├── Table.php │ ├── Trackback.php │ ├── Typography.php │ ├── Unit_test.php │ ├── Upload.php │ ├── User_agent.php │ ├── Xmlrpc.php │ ├── Xmlrpcs.php │ ├── Zip.php │ ├── index.html │ └── javascript │ ├── Jquery.php │ └── index.html └── user_guide ├── .buildinfo ├── DCO.html ├── _downloads └── ELDocs.tmbundle.zip ├── _images ├── appflowchart.gif └── smile.gif ├── _static ├── ajax-loader.gif ├── basic.css ├── ci-icon.ico ├── comment-bright.png ├── comment-close.png ├── comment.png ├── css │ ├── badge_only.css │ ├── citheme.css │ └── theme.css ├── doctools.js ├── down-pressed.png ├── down.png ├── file.png ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff ├── jquery.js ├── js │ ├── oldtheme.js │ └── theme.js ├── minus.png ├── plus.png ├── pygments.css ├── searchtools.js ├── underscore.js ├── up-pressed.png ├── up.png └── websupport.js ├── changelog.html ├── contributing └── index.html ├── database ├── caching.html ├── call_function.html ├── configuration.html ├── connecting.html ├── db_driver_reference.html ├── examples.html ├── forge.html ├── helpers.html ├── index.html ├── metadata.html ├── queries.html ├── query_builder.html ├── results.html ├── transactions.html └── utilities.html ├── documentation └── index.html ├── general ├── alternative_php.html ├── ancillary_classes.html ├── autoloader.html ├── caching.html ├── cli.html ├── common_functions.html ├── compatibility_functions.html ├── controllers.html ├── core_classes.html ├── creating_drivers.html ├── creating_libraries.html ├── credits.html ├── drivers.html ├── environments.html ├── errors.html ├── helpers.html ├── hooks.html ├── index.html ├── libraries.html ├── managing_apps.html ├── models.html ├── profiling.html ├── requirements.html ├── reserved_names.html ├── routing.html ├── security.html ├── styleguide.html ├── urls.html ├── views.html └── welcome.html ├── genindex.html ├── helpers ├── array_helper.html ├── captcha_helper.html ├── cookie_helper.html ├── date_helper.html ├── directory_helper.html ├── download_helper.html ├── email_helper.html ├── file_helper.html ├── form_helper.html ├── html_helper.html ├── index.html ├── inflector_helper.html ├── language_helper.html ├── number_helper.html ├── path_helper.html ├── security_helper.html ├── smiley_helper.html ├── string_helper.html ├── text_helper.html ├── typography_helper.html ├── url_helper.html └── xml_helper.html ├── index.html ├── installation ├── downloads.html ├── index.html ├── troubleshooting.html ├── upgrade_120.html ├── upgrade_130.html ├── upgrade_131.html ├── upgrade_132.html ├── upgrade_133.html ├── upgrade_140.html ├── upgrade_141.html ├── upgrade_150.html ├── upgrade_152.html ├── upgrade_153.html ├── upgrade_154.html ├── upgrade_160.html ├── upgrade_161.html ├── upgrade_162.html ├── upgrade_163.html ├── upgrade_170.html ├── upgrade_171.html ├── upgrade_172.html ├── upgrade_200.html ├── upgrade_201.html ├── upgrade_202.html ├── upgrade_203.html ├── upgrade_210.html ├── upgrade_211.html ├── upgrade_212.html ├── upgrade_213.html ├── upgrade_214.html ├── upgrade_220.html ├── upgrade_221.html ├── upgrade_222.html ├── upgrade_223.html ├── upgrade_300.html ├── upgrade_301.html ├── upgrade_302.html ├── upgrade_303.html ├── upgrade_b11.html └── upgrading.html ├── libraries ├── benchmark.html ├── caching.html ├── calendar.html ├── cart.html ├── config.html ├── email.html ├── encrypt.html ├── encryption.html ├── file_uploading.html ├── form_validation.html ├── ftp.html ├── image_lib.html ├── index.html ├── input.html ├── javascript.html ├── language.html ├── loader.html ├── migration.html ├── output.html ├── pagination.html ├── parser.html ├── security.html ├── sessions.html ├── table.html ├── trackback.html ├── typography.html ├── unit_testing.html ├── uri.html ├── user_agent.html ├── xmlrpc.html └── zip.html ├── license.html ├── objects.inv ├── overview ├── appflow.html ├── at_a_glance.html ├── features.html ├── getting_started.html ├── goals.html ├── index.html └── mvc.html ├── search.html ├── searchindex.js └── tutorial ├── conclusion.html ├── create_news_items.html ├── index.html ├── news_section.html └── static_pages.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | application/cache/* 4 | !application/cache/index.html 5 | !application/cache/.htaccess 6 | 7 | application/logs/* 8 | !application/logs/index.html 9 | !application/logs/.htaccess 10 | 11 | user_guide_src/build/* 12 | user_guide_src/cilexer/build/* 13 | user_guide_src/cilexer/dist/* 14 | user_guide_src/cilexer/pycilexer.egg-info/* 15 | /vendor/ 16 | 17 | # IDE Files 18 | #------------------------- 19 | /nbproject/ 20 | .idea/* 21 | 22 | ## Sublime Text cache files 23 | *.tmlanguage.cache 24 | *.tmPreferences.cache 25 | *.stTheme.cache 26 | *.sublime-workspace 27 | *.sublime-project 28 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | 2 | # Turn on the rewrite engine 3 | RewriteEngine On 4 | 5 | # Installation dir 6 | RewriteBase / 7 | 8 | # Allow any files or directories that exist to be displayed directly 9 | RewriteCond %{REQUEST_FILENAME} !-f 10 | RewriteCond %{REQUEST_FILENAME} !-d 11 | 12 | # Rewrite all other URLs to index.php/URL 13 | RewriteRule .* index.php/$0 [PT] 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CodeIgniter with RequireJS and Backbone 2 | 3 | If you need a web app with a strong front-end interaction with access to back-end processing, such as querying an API for JSON data or building an admin dashboard to manage your assets, you can use this repo as a good starting point to hit the ground running. 4 | 5 | There are several ways to get a RequireJS/Backbone App up and running, but I needed to be able support mulitple users, manage content and uploads, and be able to serve data through an API, so I have choosen to integrate everything together with the CodeIgniter framework since many of these extras are built in and well documented. 6 | 7 | ## Whats Included? 8 | ### Frameworks, libraries and some standard html/css templates 9 | * [CodeIgniter Version 3.0.3](ellislab.com/codeigniter) 10 | * [HTML5 Boilerplate](html5boilerplate.com/) 11 | * [Normalize](http://necolas.github.com/normalize.css/) 12 | * [Modernizr](modernizr.com/) 13 | * [RequireJS](http://requirejs.org/) 14 | * [jQuery](http://jquery.com/) 15 | * [jQueryUI](jqueryui.com/) 16 | * [Backbone](http://documentcloud.github.com/backbone) 17 | * [Underscore](underscorejs.org/) 18 | * [Hogan](twitter.github.com/hogan.js/) 19 | 20 | ### RequireJS configured to load our libraries from a CDN with a fallback to local copies of the libs. 21 | @see `js/main.js` for this is configured. Note that the CDN is commented out for development. Uncomment when you go live. 22 | 23 | ### Sample Ajax API Controller 24 | @see `application/controllers/api/ajax` and `application/config/routes/` for how this is wired up. 25 | The gist is I created a simple API controller to handle your Ajax calls. Configure for your calls 26 | 27 | ### Example of everything running together. 28 | I created a super simple example to show a landing page which will load our header and footer templates, pass any CI data to the view from controller, RequireJS to load up our libraries when needed and make a call to a API Controller which return JSON data. 29 | 30 | ## Requirements 31 | You need a LAMP stack, access to database, and a machine/server configured for running PHP version 5.1.6 or newer. Also see [CodeIgniter Server Requirements](http://ellislab.com/codeigniter/user-guide/general/requirements.html) for more CI info. 32 | 33 | ## Setup 34 | ### CodeIgniter 35 | If you are not already aware of the CodeIgniter basic setup, you will need to edit the config files in your application. Navigate to `application/config` folder and see the [CI Database Configuration](http://ellislab.com/codeigniter/user-guide/database/configuration.html) and [CI Encryption Class](http://ellislab.com/codeigniter/user-guide/libraries/encryption.html) for starters, and then do some research to customize anything else you would need. 36 | 37 | ### Require and Backbone 38 | Require and Backbone are up and running with very basic settings. There are a quite a few tutorials on the web for taking Backbone to the next level. I found this article to be quite informative - [JavaScript Architecture: RequireJS Dependency Management](http://aaronhardy.com/javascript/javascript-architecture-requirejs-dependency-management/). I used the basic logic in setting up the structure to this client-side app. Refer to the `js` folder and implement your functionality there. 39 | 40 | ## Digging In 41 | You can look through the commits to see how we ended up to this state, but just to note a few of the highlights and 42 | 43 | ### CI Enable Hooks to load custom layouts 44 | Very helpful for being able to have multiple layouts for pages, widgets, popups, ect... 45 | @see: http://www.syahzul.com/codeigniter/codeigniter-layout-without-using-additional-library/ 46 | 47 | ### MY_Model and MY_Controller Overrides 48 | Add some extra basic functionality proves to be helpful. 49 | @see `application/core/MY_Model.php` and `application/core/MY_Controller.php` 50 | 51 | ### Ajax API 52 | This was the main reason I set this all up. I wanted to be able to touch my database and get records from the client-side through an API until I get up and running fully with NoSQL and Node. So using CI to process data and output JSON data with this API Controller makes this possible to get data to the client-side in a pretty secure fashion. 53 | 54 | NOTE: that moving forward you must use best practices to guard yourself against XSS attacks. 55 | @see [OWASP](https://www.owasp.org/) for more info about security, and this is a good read about [Testing for AJAX Vulnerabilities](https://www.owasp.org/index.php/Testing_for_AJAX_Vulnerabilities_%28OWASP-AJ-001%29) 56 | 57 | Also, @see [CI Input class](http://ellislab.com/codeigniter/user-guide/libraries/input.html) and [CI Security Class](http://ellislab.com/codeigniter/user-guide/libraries/security.html) for built in Global XSS Filtering and Security options. 58 | 59 | 60 | ## Thats it for now - Happy Coding! 61 | 62 | -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/autoload.php: -------------------------------------------------------------------------------- 1 | 'ua'); 60 | */ 61 | $autoload['libraries'] = array(); 62 | 63 | /* 64 | | ------------------------------------------------------------------- 65 | | Auto-load Drivers 66 | | ------------------------------------------------------------------- 67 | | These classes are located in system/libraries/ or in your 68 | | application/libraries/ directory, but are also placed inside their 69 | | own subdirectory and they extend the CI_Driver_Library class. They 70 | | offer multiple interchangeable driver options. 71 | | 72 | | Prototype: 73 | | 74 | | $autoload['drivers'] = array('cache'); 75 | */ 76 | $autoload['drivers'] = array(); 77 | 78 | /* 79 | | ------------------------------------------------------------------- 80 | | Auto-load Helper Files 81 | | ------------------------------------------------------------------- 82 | | Prototype: 83 | | 84 | | $autoload['helper'] = array('url', 'file'); 85 | */ 86 | $autoload['helper'] = array('url'); 87 | 88 | /* 89 | | ------------------------------------------------------------------- 90 | | Auto-load Config files 91 | | ------------------------------------------------------------------- 92 | | Prototype: 93 | | 94 | | $autoload['config'] = array('config1', 'config2'); 95 | | 96 | | NOTE: This item is intended for use ONLY if you have created custom 97 | | config files. Otherwise, leave it blank. 98 | | 99 | */ 100 | $autoload['config'] = array(); 101 | 102 | /* 103 | | ------------------------------------------------------------------- 104 | | Auto-load Language files 105 | | ------------------------------------------------------------------- 106 | | Prototype: 107 | | 108 | | $autoload['language'] = array('lang1', 'lang2'); 109 | | 110 | | NOTE: Do not include the "_lang" part of your file. For example 111 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); 112 | | 113 | */ 114 | $autoload['language'] = array(); 115 | 116 | /* 117 | | ------------------------------------------------------------------- 118 | | Auto-load Models 119 | | ------------------------------------------------------------------- 120 | | Prototype: 121 | | 122 | | $autoload['model'] = array('first_model', 'second_model'); 123 | | 124 | | You can also supply an alternative model name to be assigned 125 | | in the controller: 126 | | 127 | | $autoload['model'] = array('first_model' => 'first'); 128 | */ 129 | $autoload['model'] = array(); 130 | -------------------------------------------------------------------------------- /application/config/constants.php: -------------------------------------------------------------------------------- 1 | '', 6 | 'xhtml1-strict' => '', 7 | 'xhtml1-trans' => '', 8 | 'xhtml1-frame' => '', 9 | 'xhtml-basic11' => '', 10 | 'html5' => '', 11 | 'html4-strict' => '', 12 | 'html4-trans' => '', 13 | 'html4-frame' => '', 14 | 'mathml1' => '', 15 | 'mathml2' => '', 16 | 'svg10' => '', 17 | 'svg11' => '', 18 | 'svg11-basic' => '', 19 | 'svg11-tiny' => '', 20 | 'xhtml-math-svg-xh' => '', 21 | 'xhtml-math-svg-sh' => '', 22 | 'xhtml-rdfa-1' => '', 23 | 'xhtml-rdfa-2' => '' 24 | ); 25 | -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 14 | '/ö|œ/' => 'oe', 15 | '/ü/' => 'ue', 16 | '/Ä/' => 'Ae', 17 | '/Ü/' => 'Ue', 18 | '/Ö/' => 'Oe', 19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', 20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', 21 | '/Б/' => 'B', 22 | '/б/' => 'b', 23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 24 | '/ç|ć|ĉ|ċ|č/' => 'c', 25 | '/Д/' => 'D', 26 | '/д/' => 'd', 27 | '/Ð|Ď|Đ|Δ/' => 'Dj', 28 | '/ð|ď|đ|δ/' => 'dj', 29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', 30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', 31 | '/Ф/' => 'F', 32 | '/ф/' => 'f', 33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', 34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', 35 | '/Ĥ|Ħ/' => 'H', 36 | '/ĥ|ħ/' => 'h', 37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', 38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', 39 | '/Ĵ/' => 'J', 40 | '/ĵ/' => 'j', 41 | '/Ķ|Κ|К/' => 'K', 42 | '/ķ|κ|к/' => 'k', 43 | '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L', 44 | '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l', 45 | '/М/' => 'M', 46 | '/м/' => 'm', 47 | '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N', 48 | '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n', 49 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O', 50 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o', 51 | '/П/' => 'P', 52 | '/п/' => 'p', 53 | '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R', 54 | '/ŕ|ŗ|ř|ρ|р/' => 'r', 55 | '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S', 56 | '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's', 57 | '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T', 58 | '/ț|ţ|ť|ŧ|т/' => 't', 59 | '/Þ|þ/' => 'th', 60 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U', 61 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', 62 | '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', 63 | '/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', 64 | '/В/' => 'V', 65 | '/в/' => 'v', 66 | '/Ŵ/' => 'W', 67 | '/ŵ/' => 'w', 68 | '/Ź|Ż|Ž|Ζ|З/' => 'Z', 69 | '/ź|ż|ž|ζ|з/' => 'z', 70 | '/Æ|Ǽ/' => 'AE', 71 | '/ß/' => 'ss', 72 | '/IJ/' => 'IJ', 73 | '/ij/' => 'ij', 74 | '/Œ/' => 'OE', 75 | '/ƒ/' => 'f', 76 | '/ξ/' => 'ks', 77 | '/π/' => 'p', 78 | '/β/' => 'v', 79 | '/μ/' => 'm', 80 | '/ψ/' => 'ps', 81 | '/Ё/' => 'Yo', 82 | '/ё/' => 'yo', 83 | '/Є/' => 'Ye', 84 | '/є/' => 'ye', 85 | '/Ї/' => 'Yi', 86 | '/Ж/' => 'Zh', 87 | '/ж/' => 'zh', 88 | '/Х/' => 'Kh', 89 | '/х/' => 'kh', 90 | '/Ц/' => 'Ts', 91 | '/ц/' => 'ts', 92 | '/Ч/' => 'Ch', 93 | '/ч/' => 'ch', 94 | '/Ш/' => 'Sh', 95 | '/ш/' => 'sh', 96 | '/Щ/' => 'Shch', 97 | '/щ/' => 'shch', 98 | '/Ъ|ъ|Ь|ь/' => '', 99 | '/Ю/' => 'Yu', 100 | '/ю/' => 'yu', 101 | '/Я/' => 'Ya', 102 | '/я/' => 'ya' 103 | ); 104 | -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 'Layout', 21 | 'function' => 'index', 22 | 'filename' => 'Layout.php', 23 | 'filepath' => 'hooks' 24 | ); -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/memcached.php: -------------------------------------------------------------------------------- 1 | array( 15 | 'hostname' => '127.0.0.1', 16 | 'port' => '11211', 17 | 'weight' => '1', 18 | ), 19 | ); 20 | -------------------------------------------------------------------------------- /application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->current() this is the version that schema will 69 | | be upgraded / downgraded to. 70 | | 71 | */ 72 | $config['migration_version'] = 0; 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Migrations Path 77 | |-------------------------------------------------------------------------- 78 | | 79 | | Path to your migrations folder. 80 | | Typically, it will be within your application path. 81 | | Also, writing permission is required within the migrations path. 82 | | 83 | */ 84 | $config['migration_path'] = APPPATH.'migrations/'; 85 | -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | my_controller/index 50 | | my-controller/my-method -> my_controller/my_method 51 | */ 52 | $route['default_controller'] = 'general'; 53 | $route['404_override'] = ''; 54 | 55 | // Custom Routes 56 | $route['/'] = 'general/index'; 57 | 58 | // Ajax API routes 59 | $route['api'] = 'api/ajax/index'; 60 | $route['api/get?(:any)'] = 'api/ajax/get/$1'; 61 | $route['api/post'] = 'api/ajax/post'; 62 | 63 | // Catch all default for direct access to controllers 64 | $route['(:any)/(:any)'] = '$1/$2'; 65 | $route['translate_uri_dashes'] = FALSE; 66 | -------------------------------------------------------------------------------- /application/config/smileys.php: -------------------------------------------------------------------------------- 1 | array('grin.gif', '19', '19', 'grin'), 21 | ':lol:' => array('lol.gif', '19', '19', 'LOL'), 22 | ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), 23 | ':)' => array('smile.gif', '19', '19', 'smile'), 24 | ';-)' => array('wink.gif', '19', '19', 'wink'), 25 | ';)' => array('wink.gif', '19', '19', 'wink'), 26 | ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), 27 | ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), 28 | ':-S' => array('confused.gif', '19', '19', 'confused'), 29 | ':wow:' => array('surprise.gif', '19', '19', 'surprised'), 30 | ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), 31 | ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), 32 | '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), 33 | ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), 34 | ':P' => array('raspberry.gif', '19', '19', 'raspberry'), 35 | ':blank:' => array('blank.gif', '19', '19', 'blank stare'), 36 | ':long:' => array('longface.gif', '19', '19', 'long face'), 37 | ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), 38 | ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), 39 | ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), 40 | '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), 41 | ':down:' => array('downer.gif', '19', '19', 'downer'), 42 | ':red:' => array('embarrassed.gif', '19', '19', 'red face'), 43 | ':sick:' => array('sick.gif', '19', '19', 'sick'), 44 | ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), 45 | ':-/' => array('hmm.gif', '19', '19', 'hmmm'), 46 | '>:(' => array('mad.gif', '19', '19', 'mad'), 47 | ':mad:' => array('mad.gif', '19', '19', 'mad'), 48 | '>:-(' => array('angry.gif', '19', '19', 'angry'), 49 | ':angry:' => array('angry.gif', '19', '19', 'angry'), 50 | ':zip:' => array('zip.gif', '19', '19', 'zipper'), 51 | ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), 52 | ':ahhh:' => array('shock.gif', '19', '19', 'shock'), 53 | ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), 54 | ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), 55 | ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), 56 | ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), 57 | ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), 58 | ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), 59 | ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), 60 | ':snake:' => array('snake.gif', '19', '19', 'snake'), 61 | ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), 62 | ':question:' => array('question.gif', '19', '19', 'question') 63 | 64 | ); 65 | -------------------------------------------------------------------------------- /application/controllers/General.php: -------------------------------------------------------------------------------- 1 | set_page_title('Your Custom Page Title'); 20 | $this->set_meta_description('Your Custom Meta Description.'); 21 | $this->load_css(array( 22 | // relative path to your page specific css eg: /css/example.css 23 | 'css/test.css' 24 | )); 25 | $this->load_js(array( 26 | // relative path to your page specific javascript eg: /js/example.js 27 | // Remember we are going to handle the JS with require.js 28 | )); 29 | 30 | // Do something here... 31 | $foo = 'bar'; 32 | 33 | // Assign your data to an array 34 | $data = array( 35 | 'foo' => $foo 36 | ); 37 | 38 | // relative path to your views file.php eg: index.php or custom/index.php 39 | // pass your data to the view 40 | $this->load->view('/general/index', $data); 41 | } 42 | 43 | /** 44 | * 45 | * Example of using another layout and view template for your view if needed 46 | * 47 | * @access public 48 | * @return void 49 | * 50 | */ 51 | public function highlight(){ 52 | $this->set_page_title('Example of another page'); 53 | $this->set_meta_description('Example of another page Meta Description.'); 54 | 55 | // Set another layout 56 | $this->layout = 'highlight'; 57 | 58 | // Do something here... 59 | // $foo = 'bar'; 60 | 61 | // Assign your data to an array 62 | $data = array( 63 | //'baz' => $foo 64 | ); 65 | 66 | // Load another view and pass the data 67 | $this->load->view('/example/index', $data); 68 | } 69 | } -------------------------------------------------------------------------------- /application/controllers/api/Ajax.php: -------------------------------------------------------------------------------- 1 | input->is_ajax_request() && !empty($_POST) ) { 32 | 33 | // Mock up Ajax request to load data from model 34 | // Configure this to your liking 35 | $id = $_POST['id']; 36 | if ($id != null) { 37 | 38 | // Query and/or process here 39 | //$this->load->model('example_model'); 40 | //$data = $this->example_model->get($id); 41 | 42 | // just example data to show we are making connection. delete 43 | $data = array('success' => 'true'); 44 | } 45 | 46 | // Error fallback 47 | if (empty($data)) { 48 | $data = array('success' => 'false'); 49 | } 50 | $this->return_json($data); 51 | 52 | } else { 53 | // Access Error Fallback 54 | exit('Boo...'); 55 | } 56 | } 57 | 58 | 59 | /** 60 | * If you want to use GET in your ajax calls you could use without forcing POST 61 | * basic $GET data from Ajax in URL 62 | * 63 | * @access public 64 | * @param String $id 65 | * @return JSON 66 | */ 67 | public function get($id = null) { 68 | 69 | if ( $this->input->is_ajax_request() ) { 70 | if ($id != null) { 71 | 72 | // Query here 73 | // $foo = 'bar'; 74 | 75 | // and customize your callback if need be 76 | $data = array( 77 | //'baz' => $foo, 78 | 'success' => 'true' 79 | ); 80 | } 81 | 82 | // Error fallback 83 | if (empty($data)) { 84 | $data = array('success' => 'false'); 85 | } 86 | 87 | // Return JSON 88 | $this->return_json($data); 89 | 90 | } else { 91 | // Access Error Fallback 92 | exit('Boo...'); 93 | } 94 | } 95 | 96 | /** 97 | * If your intention is to update your db or some other data manipulation, 98 | * force your api to only accept POST, its safer 99 | * 100 | * @access public 101 | * @return JSON 102 | */ 103 | public function post() { 104 | if ($this->input->is_ajax_request() && !empty($_POST)) { 105 | 106 | // Mock up Ajax request to load data from model 107 | // Configure this to your liking 108 | $id = $_POST['id']; 109 | if ($id != null) { 110 | // do some query or updating here 111 | 112 | // and customize your callback 113 | $data = array('success' => 'true'); 114 | } 115 | 116 | // Error fallback 117 | if (empty($data)) { 118 | $data = array('success' => 'false'); 119 | } 120 | 121 | // Return JSON 122 | $this->return_json($data); 123 | 124 | } else { 125 | // Access Error Fallback 126 | exit('Boo...'); 127 | } 128 | } 129 | } -------------------------------------------------------------------------------- /application/controllers/api/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/core/MY_Controller.php: -------------------------------------------------------------------------------- 1 | load_css(array( 31 | 'css/normalize.css', 32 | 'css/global.css' 33 | )); 34 | 35 | // Load global js here. 36 | $this->load_js(array( 37 | 'js/libs/modernizr.js' 38 | )); 39 | } 40 | 41 | /** 42 | * Set page title. 43 | * 44 | * @access protected 45 | * @param string $page_title 46 | */ 47 | protected function set_page_title($page_title) 48 | { 49 | $this->load->vars(array('page_title' => $page_title)); 50 | } 51 | 52 | /** 53 | * Set meta description. 54 | * 55 | * @access protected 56 | * @param string $meta_description 57 | */ 58 | protected function set_meta_description($meta_description) 59 | { 60 | $this->load->vars(array('meta_description' => $meta_description)); 61 | } 62 | 63 | /** 64 | * Load css styles. 65 | * 66 | * @access protected 67 | * @param array $css 68 | */ 69 | protected function load_css(array $css) 70 | { 71 | // If globals exist - combine the globals with local 72 | if ($og_css = $this->load->get_var('site_css')) { 73 | // merge 74 | $css = array_merge($og_css, $css); 75 | // get rid of duplicates 76 | $css = array_unique($css); 77 | } 78 | 79 | $this->load->vars('site_css', $css); 80 | } 81 | 82 | /** 83 | * Load javascript files. 84 | * 85 | * @access protected 86 | * @param array $js 87 | */ 88 | protected function load_js(array $js) 89 | { 90 | // If globals exist - combine the globals with local 91 | if ($og_js = $this->load->get_var('site_js')) { 92 | // merge 93 | $js = array_merge($og_js, $js); 94 | // get rid of duplicates 95 | $js = array_unique($js); 96 | } 97 | 98 | $this->load->vars('site_js', $js); 99 | } 100 | 101 | /** 102 | * Return json data. 103 | * 104 | * @access protected 105 | * @param array $data 106 | * @link http://ellislab.com/codeigniter/user-guide/libraries/output.html 107 | * 108 | */ 109 | protected function return_json($data) 110 | { 111 | // destroy layout 112 | unset($this->layout); 113 | 114 | // Set content type and output 115 | $this->output 116 | ->set_content_type('application/json') 117 | ->set_output(json_encode($data)); 118 | } 119 | } -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/helpers/print_helper.php: -------------------------------------------------------------------------------- 1 | "; 18 | print_r($data); 19 | echo ""; 20 | } 21 | } 22 | 23 | 24 | /* End of file print_helper.php */ 25 | /* Location: ./system/helpers/print_helper.php */ -------------------------------------------------------------------------------- /application/hooks/Layout.php: -------------------------------------------------------------------------------- 1 | input->is_cli_request()) 16 | { 17 | global $OUT; 18 | 19 | // get default output generated by CI 20 | $output = $CI->output->get_output(); 21 | 22 | if (isset($CI->layout) AND ! empty($CI->layout)) 23 | { 24 | if ( ! preg_match('/(.+).php$/', $CI->layout)) 25 | { 26 | $CI->layout.= '.php'; 27 | } 28 | 29 | // this will be the requested layout 30 | $requested = APPPATH.'views/layout/'.$CI->layout; 31 | 32 | // this is the default layout, use as fallback 33 | $default = APPPATH.'views/layout/default.php'; 34 | 35 | if (file_exists($requested)) 36 | { 37 | $layout = $CI->load->file($requested, true); 38 | } 39 | else 40 | { 41 | $layout = $CI->load->file($default, true); 42 | } 43 | 44 | $view = str_replace('{content}', $output, $layout); 45 | } 46 | else 47 | { 48 | $view = $output; 49 | } 50 | 51 | $OUT->_display($view); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/Api_model.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/cli/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | An uncaught Exception was encountered 4 | 5 | Type: 6 | Message: 7 | Filename: getFile(), "\n"; ?> 8 | Line Number: getLine(); ?> 9 | 10 | 11 | 12 | Backtrace: 13 | getTrace() as $error): ?> 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/errors/cli/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | A PHP Error was encountered 4 | 5 | Severity: 6 | Message: 7 | Filename: 8 | Line Number: 9 | 10 | 11 | 12 | Backtrace: 13 | 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/errors/cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/html/error_404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 404 Page Not Found 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_db.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Database Error 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_exception.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

An uncaught Exception was encountered

8 | 9 |

Type:

10 |

Message:

11 |

Filename: getFile(); ?>

12 |

Line Number: getLine(); ?>

13 | 14 | 15 | 16 |

Backtrace:

17 | getTrace() as $error): ?> 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 |
-------------------------------------------------------------------------------- /application/views/errors/html/error_general.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Error 8 | 57 | 58 | 59 |
60 |

61 | 62 |
63 | 64 | -------------------------------------------------------------------------------- /application/views/errors/html/error_php.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

A PHP Error was encountered

8 | 9 |

Severity:

10 |

Message:

11 |

Filename:

12 |

Line Number:

13 | 14 | 15 | 16 |

Backtrace:

17 | 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
-------------------------------------------------------------------------------- /application/views/errors/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/example/index.php: -------------------------------------------------------------------------------- 1 |
2 |

This is an example view

3 |
-------------------------------------------------------------------------------- /application/views/general/index.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 | Display my content passed from the controller 5 |

6 | 7 | 8 |
Our data: foo ===
9 | 10 | 11 |
-------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/layout/default.php: -------------------------------------------------------------------------------- 1 | load->view('templates/header');?> 2 | 3 |
4 | 5 |

Your New Site Boilerplate

6 |

CodeIgniter loading RequireJS and Backbone

7 | 8 | {content} 9 | 10 |
11 | 12 | load->view('templates/footer');?> 13 | -------------------------------------------------------------------------------- /application/views/layout/highlight.php: -------------------------------------------------------------------------------- 1 | load->view('templates/header');?> 2 | 3 |
4 | 5 |

Your New Site Boilerplate

6 |

Hightlight Layout!

7 | 8 | {content} 9 | 10 |
11 | 12 | load->view('templates/footer');?> 13 | 14 | 15 | -------------------------------------------------------------------------------- /application/views/templates/footer.php: -------------------------------------------------------------------------------- 1 | 4 | var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; 5 | (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; 6 | g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; 7 | s.parentNode.insertBefore(g,s)}(document,'script')); 8 | 9 | */ ?> 10 | 11 | -------------------------------------------------------------------------------- /application/views/templates/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | <?= (isset($page_title)) ? $page_title : 'Your Default Page Title'; ?> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "The CodeIgniter framework", 3 | "name": "codeigniter/framework", 4 | "type": "project", 5 | "homepage": "http://codeigniter.com", 6 | "license": "MIT", 7 | "support": { 8 | "forum": "http://forum.codeigniter.com/", 9 | "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", 10 | "irc": "irc://irc.freenode.net/codeigniter", 11 | "source": "https://github.com/bcit-ci/CodeIgniter" 12 | }, 13 | "require": { 14 | "php": ">=5.2.4" 15 | }, 16 | "require-dev": { 17 | "mikey179/vfsStream": "1.1.*" 18 | } 19 | } -------------------------------------------------------------------------------- /css/global.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #373737; 3 | background: #FAFAFA; 4 | } -------------------------------------------------------------------------------- /css/test.css: -------------------------------------------------------------------------------- 1 | h3 { 2 | color:blue; 3 | } -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/favicon.ico -------------------------------------------------------------------------------- /js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/js/.DS_Store -------------------------------------------------------------------------------- /js/app/collections/ExampleCollection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * ExampleCollection 5 | * @see http://backbonetutorials.com/what-is-a-collection/ 6 | * 7 | */ 8 | 9 | define('app/collections/ExampleCollection', 10 | [ 11 | 'jquery', 12 | 'underscore', 13 | 'backbone', 14 | 'app/models/ExampleModel' 15 | ], 16 | function ($, _, Backbone, ExampleModel) { 17 | var ExampleCollection = Backbone.Collection.extend({ 18 | 19 | // Populate Collection, ect.. 20 | 21 | }); // end Backbone.Collection.extend() 22 | 23 | return ExampleCollection; 24 | } 25 | ); -------------------------------------------------------------------------------- /js/app/models/ExampleModel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * ExampleModel 5 | * @see http://backbonetutorials.com/what-is-a-model/ 6 | * 7 | */ 8 | 9 | define('app/models/ExampleModel', 10 | [ 11 | 'jquery', 12 | 'underscore', 13 | 'backbone' 14 | ], 15 | function ($, _, Backbone) { 16 | var ExampleModel = Backbone.Model.extend({ 17 | 18 | // Set defaults, ect.. 19 | 20 | }); // end Backbone.Model.extend() 21 | 22 | return ExampleModel; 23 | } 24 | ); -------------------------------------------------------------------------------- /js/app/views/ExampleView.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * ExampleView 5 | * @see http://backbonetutorials.com/what-is-a-view/ 6 | * 7 | */ 8 | 9 | define('app/views/ExampleView', 10 | [ 11 | 'jquery', 12 | 'underscore', 13 | 'backbone', 14 | 'hogan', 15 | 'app/collections/ExampleCollection' 16 | ], 17 | function ($, _, Backbone, Hogan, ExampleCollection) { 18 | var ExampleView = Backbone.View.extend({ 19 | 20 | // Backbone tag setup 21 | tagName: 'div', 22 | className: 'example-container', 23 | 24 | // Hogan Compiler = remember to always escape new lines or you will get an error 25 | exampleTemplate: Hogan.compile(' \ 26 |
\ 27 |

{{data}}

\ 28 |
\ 29 | '), 30 | 31 | // Event listener 32 | events: function () { 33 | var events = { 34 | 'click .example-div' : 'exampleClicked' 35 | }; 36 | return events; 37 | }, 38 | 39 | exampleClicked: function () { 40 | // Just an example of an event listener to show things are working 41 | // Clone the element and add back to the page 42 | var clone = this.$el.clone(); 43 | this.$el.append(clone); 44 | }, 45 | 46 | initialize: function() { 47 | // deal with JS 'this' issues 48 | _.bindAll(this); 49 | return this; 50 | }, 51 | 52 | render: function() { 53 | var data = 'Hogan Compiled HTML via Backbone View. Click to duplicate'; 54 | this.$el 55 | .css({cursor:'pointer'}) 56 | .append( 57 | this.exampleTemplate.render({data:data} 58 | ) 59 | ); 60 | // Add to body 61 | $('body').append(this.$el); 62 | } 63 | 64 | }); // end Backbone.View.extend() 65 | 66 | return ExampleView; 67 | } 68 | ); -------------------------------------------------------------------------------- /js/global.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('global', 4 | [ 5 | 'jquery', 6 | 'jquery-ui', 7 | 'home' 8 | ], 9 | function ($ ,jqueryUI, Home){ 10 | var Global = { 11 | init: function(){ 12 | $(function(){ 13 | var newh3 = $('

').text('RequireJS Exmaple. Now drag me around...').css({cursor:'pointer',display:'inline-block'}).draggable(); 14 | $('body').append(newh3); 15 | 16 | // Test API call 17 | $.ajax({ 18 | url: '/api', 19 | type: 'POST', 20 | dataType: 'json', 21 | data: {id:1}, 22 | success: function (data, textStatus, xhr) { 23 | //console.log(data); 24 | //console.log(textStatus); 25 | //console.log(xhr); 26 | Home.init(data); 27 | }, 28 | error: function (xhr, textStatus, errorThrown) { 29 | //console.log(errorThrown); 30 | } 31 | }) 32 | 33 | }); 34 | 35 | }// end init 36 | };//end Global 37 | return Global; 38 | }); -------------------------------------------------------------------------------- /js/home.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('home', 4 | [ 5 | 'jquery' 6 | ], 7 | function ($){ 8 | var Home = { 9 | init: function(data){ 10 | var success = '' + data.success + ''; 11 | this.nextStep( 12 | 'And this is the Ajax API call. Was it successful? ' 13 | + success 14 | ); 15 | }, 16 | nextStep: function(html){ 17 | var newp = $('

').append(html); 18 | $('body').append(newp); 19 | } 20 | }; 21 | return Home; 22 | }); -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * RequireJS config and shim 5 | * @see http://requirejs.org/docs/api.html#config 6 | * 7 | * Also a good read to explain RequireJS dependency management 8 | * @link http://aaronhardy.com/javascript/javascript-architecture-requirejs-dependency-management/ 9 | * 10 | */ 11 | 12 | requirejs. 13 | config({ 14 | // enforceDefine to catch load failures in IE 15 | // @see http://requirejs.org/docs/api.html#ieloadfail 16 | // @see http://requirejs.org/docs/api.html#config-enforceDefine 17 | // See below for load require() | define() comment with this option 18 | enforceDefine: true, 19 | 20 | // @see http://requirejs.org/docs/api.html#pathsfallbacks 21 | // If the CDN location fails, load from local location 22 | 23 | // @TODO - work with local copies in development, and uncomment the CDN hosted when you go live 24 | paths: { 25 | 'jquery': [//'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min', 26 | 'libs/jquery.min'], 27 | 'jquery-ui': [//'http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min', 28 | 'libs/jquery-ui.min'], 29 | 'backbone': [//'http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.10/backbone-min', 30 | 'libs/backbone'], 31 | 'underscore': [//'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.3/underscore-min', 32 | 'libs/underscore'], 33 | 'hogan': 'libs/hogan' 34 | }, 35 | // @see http://requirejs.org/docs/api.html#config-shim 36 | shim: { 37 | 'jquery': { 38 | exports: '$' 39 | }, 40 | 'jquery-ui': { 41 | deps: ['jquery'], 42 | exports: '$.ui', 43 | }, 44 | 'underscore': { 45 | exports: '_' 46 | }, 47 | 'backbone': { 48 | deps: ['jquery', 'underscore'], 49 | exports: 'Backbone' 50 | }, 51 | 'hogan' : { 52 | exports: 'Hogan' 53 | } 54 | } 55 | }); 56 | 57 | // DEV NOTE: If you do set enforceDefine: true, and you use data-main="" to load your main JS module, 58 | // then that main JS module must call define() instead of require() to load the code it needs. 59 | // The main JS module can still call require/requirejs to set config values, 60 | // but for loading modules it should use define(). 61 | 62 | define(['module/Example'], function(Example) { 63 | Example.init(); 64 | }); -------------------------------------------------------------------------------- /js/module/Example.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Example 5 | * 6 | * Entry point into module 7 | * @see http://backbonetutorials.com/organizing-backbone-using-modules/ 8 | * 9 | */ 10 | 11 | define('module/Example', 12 | [ 13 | 'jquery', 14 | 'underscore', 15 | 'backbone', 16 | 'app/views/ExampleView' 17 | ], 18 | function ($, _, Backbone, ExampleView) { 19 | var Example = { 20 | init: function(){ 21 | this.exampleView = new ExampleView(); 22 | this.exampleView.render(); 23 | }// end init 24 | }; 25 | 26 | return Example; 27 | } 28 | ); -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 - 2015, British Columbia Institute of Technology 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /system/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | -------------------------------------------------------------------------------- /system/core/Benchmark.php: -------------------------------------------------------------------------------- 1 | marker[$name] = microtime(TRUE); 73 | } 74 | 75 | // -------------------------------------------------------------------- 76 | 77 | /** 78 | * Elapsed time 79 | * 80 | * Calculates the time difference between two marked points. 81 | * 82 | * If the first parameter is empty this function instead returns the 83 | * {elapsed_time} pseudo-variable. This permits the full system 84 | * execution time to be shown in a template. The output class will 85 | * swap the real value for this variable. 86 | * 87 | * @param string $point1 A particular marked point 88 | * @param string $point2 A particular marked point 89 | * @param int $decimals Number of decimal places 90 | * 91 | * @return string Calculated elapsed time on success, 92 | * an '{elapsed_string}' if $point1 is empty 93 | * or an empty string if $point1 is not found. 94 | */ 95 | public function elapsed_time($point1 = '', $point2 = '', $decimals = 4) 96 | { 97 | if ($point1 === '') 98 | { 99 | return '{elapsed_time}'; 100 | } 101 | 102 | if ( ! isset($this->marker[$point1])) 103 | { 104 | return ''; 105 | } 106 | 107 | if ( ! isset($this->marker[$point2])) 108 | { 109 | $this->marker[$point2] = microtime(TRUE); 110 | } 111 | 112 | return number_format($this->marker[$point2] - $this->marker[$point1], $decimals); 113 | } 114 | 115 | // -------------------------------------------------------------------- 116 | 117 | /** 118 | * Memory Usage 119 | * 120 | * Simply returns the {memory_usage} marker. 121 | * 122 | * This permits it to be put it anywhere in a template 123 | * without the memory being calculated until the end. 124 | * The output class will swap the real value for this variable. 125 | * 126 | * @return string '{memory_usage}' 127 | */ 128 | public function memory_usage() 129 | { 130 | return '{memory_usage}'; 131 | } 132 | 133 | } 134 | -------------------------------------------------------------------------------- /system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 74 | { 75 | $this->$var =& load_class($class); 76 | } 77 | 78 | $this->load =& load_class('Loader', 'core'); 79 | $this->load->initialize(); 80 | log_message('info', 'Controller Class Initialized'); 81 | } 82 | 83 | // -------------------------------------------------------------------- 84 | 85 | /** 86 | * Get the CI singleton 87 | * 88 | * @static 89 | * @return object 90 | */ 91 | public static function &get_instance() 92 | { 93 | return self::$instance; 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /system/core/compat/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/cubrid_utility.php: -------------------------------------------------------------------------------- 1 | db->data_cache['db_names'])) 57 | { 58 | return $this->db->data_cache['db_names']; 59 | } 60 | 61 | return $this->db->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id); 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * CUBRID Export 68 | * 69 | * @param array Preferences 70 | * @return mixed 71 | */ 72 | protected function _backup($params = array()) 73 | { 74 | // No SQL based support in CUBRID as of version 8.4.0. Database or 75 | // table backup can be performed using CUBRID Manager 76 | // database administration tool. 77 | return $this->db->display_error('db_unsupported_feature'); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/ibase/ibase_utility.php: -------------------------------------------------------------------------------- 1 | db->hostname, $this->db->username, $this->db->password)) 58 | { 59 | $res = ibase_backup($service, $this->db->database, $filename.'.fbk'); 60 | 61 | // Close the service connection 62 | ibase_service_detach($service); 63 | return $res; 64 | } 65 | 66 | return FALSE; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /system/database/drivers/ibase/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/mssql_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/odbc_forge.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/pdo_forge.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/subdrivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/subdrivers/pdo_odbc_forge.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/sqlite_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite3/sqlite3_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/sqlsrv_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/system/fonts/texb.ttf -------------------------------------------------------------------------------- /system/helpers/array_helper.php: -------------------------------------------------------------------------------- 1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httponly); 74 | } 75 | } 76 | 77 | // -------------------------------------------------------------------- 78 | 79 | if ( ! function_exists('get_cookie')) 80 | { 81 | /** 82 | * Fetch an item from the COOKIE array 83 | * 84 | * @param string 85 | * @param bool 86 | * @return mixed 87 | */ 88 | function get_cookie($index, $xss_clean = NULL) 89 | { 90 | is_bool($xss_clean) OR $xss_clean = (config_item('global_xss_filtering') === TRUE); 91 | $prefix = isset($_COOKIE[$index]) ? '' : config_item('cookie_prefix'); 92 | return get_instance()->input->cookie($prefix.$index, $xss_clean); 93 | } 94 | } 95 | 96 | // -------------------------------------------------------------------- 97 | 98 | if ( ! function_exists('delete_cookie')) 99 | { 100 | /** 101 | * Delete a COOKIE 102 | * 103 | * @param mixed 104 | * @param string the cookie domain. Usually: .yourdomain.com 105 | * @param string the cookie path 106 | * @param string the cookie prefix 107 | * @return void 108 | */ 109 | function delete_cookie($name, $domain = '', $path = '/', $prefix = '') 110 | { 111 | set_cookie($name, '', '', $domain, $path, $prefix); 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /system/helpers/directory_helper.php: -------------------------------------------------------------------------------- 1 | 0) && is_dir($source_dir.$file)) 86 | { 87 | $filedata[$file] = directory_map($source_dir.$file, $new_depth, $hidden); 88 | } 89 | else 90 | { 91 | $filedata[] = $file; 92 | } 93 | } 94 | 95 | closedir($fp); 96 | return $filedata; 97 | } 98 | 99 | return FALSE; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /system/helpers/email_helper.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 67 | 68 | if ($for !== '') 69 | { 70 | $line = ''; 71 | } 72 | 73 | return $line; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /system/helpers/number_helper.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 65 | 66 | if ($num >= 1000000000000) 67 | { 68 | $num = round($num / 1099511627776, $precision); 69 | $unit = $CI->lang->line('terabyte_abbr'); 70 | } 71 | elseif ($num >= 1000000000) 72 | { 73 | $num = round($num / 1073741824, $precision); 74 | $unit = $CI->lang->line('gigabyte_abbr'); 75 | } 76 | elseif ($num >= 1000000) 77 | { 78 | $num = round($num / 1048576, $precision); 79 | $unit = $CI->lang->line('megabyte_abbr'); 80 | } 81 | elseif ($num >= 1000) 82 | { 83 | $num = round($num / 1024, $precision); 84 | $unit = $CI->lang->line('kilobyte_abbr'); 85 | } 86 | else 87 | { 88 | $unit = $CI->lang->line('bytes'); 89 | return number_format($num).' '.$unit; 90 | } 91 | 92 | return number_format($num, $precision).' '.$unit; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /system/helpers/path_helper.php: -------------------------------------------------------------------------------- 1 | security->xss_clean($str, $is_image); 64 | } 65 | } 66 | 67 | // ------------------------------------------------------------------------ 68 | 69 | if ( ! function_exists('sanitize_filename')) 70 | { 71 | /** 72 | * Sanitize Filename 73 | * 74 | * @param string 75 | * @return string 76 | */ 77 | function sanitize_filename($filename) 78 | { 79 | return get_instance()->security->sanitize_filename($filename); 80 | } 81 | } 82 | 83 | // -------------------------------------------------------------------- 84 | 85 | if ( ! function_exists('do_hash')) 86 | { 87 | /** 88 | * Hash encode a string 89 | * 90 | * @todo Remove in version 3.1+. 91 | * @deprecated 3.0.0 Use PHP's native hash() instead. 92 | * @param string $str 93 | * @param string $type = 'sha1' 94 | * @return string 95 | */ 96 | function do_hash($str, $type = 'sha1') 97 | { 98 | if ( ! in_array(strtolower($type), hash_algos())) 99 | { 100 | $type = 'md5'; 101 | } 102 | 103 | return hash($type, $str); 104 | } 105 | } 106 | 107 | // ------------------------------------------------------------------------ 108 | 109 | if ( ! function_exists('strip_image_tags')) 110 | { 111 | /** 112 | * Strip Image Tags 113 | * 114 | * @param string 115 | * @return string 116 | */ 117 | function strip_image_tags($str) 118 | { 119 | return get_instance()->security->strip_image_tags($str); 120 | } 121 | } 122 | 123 | // ------------------------------------------------------------------------ 124 | 125 | if ( ! function_exists('encode_php_tags')) 126 | { 127 | /** 128 | * Convert PHP tags to entities 129 | * 130 | * @param string 131 | * @return string 132 | */ 133 | function encode_php_tags($str) 134 | { 135 | return str_replace(array(''), array('<?', '?>'), $str); 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /system/helpers/typography_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 64 | return $CI->typography->nl2br_except_pre($str); 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | if ( ! function_exists('auto_typography')) 71 | { 72 | /** 73 | * Auto Typography Wrapper Function 74 | * 75 | * @param string $str 76 | * @param bool $reduce_linebreaks = FALSE whether to reduce multiple instances of double newlines to two 77 | * @return string 78 | */ 79 | function auto_typography($str, $reduce_linebreaks = FALSE) 80 | { 81 | $CI =& get_instance(); 82 | $CI->load->library('typography'); 83 | return $CI->typography->auto_typography($str, $reduce_linebreaks); 84 | } 85 | } 86 | 87 | // -------------------------------------------------------------------- 88 | 89 | if ( ! function_exists('entity_decode')) 90 | { 91 | /** 92 | * HTML Entities Decode 93 | * 94 | * This function is a replacement for html_entity_decode() 95 | * 96 | * @param string 97 | * @param string 98 | * @return string 99 | */ 100 | function entity_decode($str, $charset = NULL) 101 | { 102 | return get_instance()->security->entity_decode($str, $charset); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /system/helpers/xml_helper.php: -------------------------------------------------------------------------------- 1 | ', '"', "'", '-'), 76 | array('&', '<', '>', '"', ''', '-'), 77 | $str 78 | ); 79 | 80 | // Decode the temp markers back to entities 81 | $str = preg_replace('/'.$temp.'(\d+);/', '&#\\1;', $str); 82 | 83 | if ($protect_all === TRUE) 84 | { 85 | return preg_replace('/'.$temp.'(\w+);/', '&\\1;', $str); 86 | } 87 | 88 | return $str; 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/english/migration_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Session/SessionHandlerInterface.php: -------------------------------------------------------------------------------- 1 | _config =& $params; 88 | } 89 | 90 | // ------------------------------------------------------------------------ 91 | 92 | /** 93 | * Cookie destroy 94 | * 95 | * Internal method to force removal of a cookie by the client 96 | * when session_destroy() is called. 97 | * 98 | * @return bool 99 | */ 100 | protected function _cookie_destroy() 101 | { 102 | return setcookie( 103 | $this->_config['cookie_name'], 104 | NULL, 105 | 1, 106 | $this->_config['cookie_path'], 107 | $this->_config['cookie_domain'], 108 | $this->_config['cookie_secure'], 109 | TRUE 110 | ); 111 | } 112 | 113 | // ------------------------------------------------------------------------ 114 | 115 | /** 116 | * Get lock 117 | * 118 | * A dummy method allowing drivers with no locking functionality 119 | * (databases other than PostgreSQL and MySQL) to act as if they 120 | * do acquire a lock. 121 | * 122 | * @param string $session_id 123 | * @return bool 124 | */ 125 | protected function _get_lock($session_id) 126 | { 127 | $this->_lock = TRUE; 128 | return TRUE; 129 | } 130 | 131 | // ------------------------------------------------------------------------ 132 | 133 | /** 134 | * Release lock 135 | * 136 | * @return bool 137 | */ 138 | protected function _release_lock() 139 | { 140 | if ($this->_lock) 141 | { 142 | $this->_lock = FALSE; 143 | } 144 | 145 | return TRUE; 146 | } 147 | 148 | } 149 | -------------------------------------------------------------------------------- /system/libraries/Session/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Session/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/javascript/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 103a80b9dd782a05507c3eddad9efb74 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /user_guide/_downloads/ELDocs.tmbundle.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_downloads/ELDocs.tmbundle.zip -------------------------------------------------------------------------------- /user_guide/_images/appflowchart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_images/appflowchart.gif -------------------------------------------------------------------------------- /user_guide/_images/smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_images/smile.gif -------------------------------------------------------------------------------- /user_guide/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/ajax-loader.gif -------------------------------------------------------------------------------- /user_guide/_static/ci-icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/ci-icon.ico -------------------------------------------------------------------------------- /user_guide/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/comment-bright.png -------------------------------------------------------------------------------- /user_guide/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/comment-close.png -------------------------------------------------------------------------------- /user_guide/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/comment.png -------------------------------------------------------------------------------- /user_guide/_static/css/badge_only.css: -------------------------------------------------------------------------------- 1 | .fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}} 2 | /*# sourceMappingURL=badge_only.css.map */ 3 | -------------------------------------------------------------------------------- /user_guide/_static/css/citheme.css: -------------------------------------------------------------------------------- 1 | @import 'theme.css'; 2 | 3 | .highlighted { 4 | padding: 0px !important; 5 | font-weight: inherit !important; 6 | background-color: #f1d40f !important; 7 | } 8 | 9 | #nav { 10 | background-color: #494949; 11 | margin: 0; 12 | padding: 0; 13 | display: none; 14 | } 15 | 16 | #nav2 { 17 | background: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAYEAwQGBwUEBAUHCAYGBwYGCAoICQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQUFBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAMgAzAwERAAIRAQMRAf/EAFkAAQADAQAAAAAAAAAAAAAAAAABBQcIAQEAAAAAAAAAAAAAAAAAAAAAEAABAgYDAAAAAAAAAAAAAAAAAVERAtMEFJRVBxgRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AMRAAAAAAAA7a87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wHnbrLgV272uA87dZcCu3e1wN/wJGAYEjAMCRgGBIwDAkYBgSMAwJGAsoIwCCMAgjAIIwCCMAgjAIIwEgAAAAAAAAAAAAAAAAAAAAAAAH//2Q==) repeat-x scroll left top transparent; 18 | margin: 0; 19 | padding: 0 310px 0 0; 20 | text-align: right; 21 | display: none; 22 | } 23 | 24 | #nav_inner { 25 | background-color: transparent; 26 | font-family: Lucida Grande,Verdana,Geneva,sans-serif; 27 | font-size: 11px; 28 | margin: 0; 29 | padding: 8px 12px 0 20px; 30 | } 31 | 32 | div#pulldown-menu { 33 | -moz-column-count: 5; 34 | -moz-column-gap: 20px; 35 | -webkit-column-count: 5; 36 | -webkit-column-gap: 20px; 37 | column-count: 5; 38 | column-gap: 20px; 39 | -webkit-column-rule: 1px groove #b8b8b8; 40 | -moz-column-rule: 1px groove #b8b8b8; 41 | column-rule: 1px groove #b8b8b8; 42 | } 43 | 44 | #pulldown-menu > ul { 45 | padding-top: 10px; 46 | padding-bottom: 10px; 47 | -webkit-column-break-inside: avoid; /*Chrome, Safari*/ 48 | display: table; /*Firefox*/ 49 | break-inside: avoid; /*IE 10+ theoretically*/ 50 | } 51 | 52 | #pulldown-menu ul li.toctree-l2 { 53 | font-size: 0.82em; 54 | margin-left: 20px; 55 | list-style-image: url(data:image/gif;base64,R0lGODlhCwAJALMJAO7u7uTk5PLy8unp6fb29t7e3vj4+Li4uIWFheTk5AAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAAALAAkAAAQoMJ1JqTQ4Z3SI98jHCWSJkByArCyiHkMsIzEX3DeCc0Xv+4hEa5iIAAA7); 56 | } 57 | 58 | #pulldown-menu ul li.toctree-l1 a { 59 | color: #ffffff; 60 | text-decoration: none; 61 | font-size: 12px; 62 | font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif; 63 | font-weight: 700; 64 | } 65 | 66 | #pulldown-menu ul li.toctree-l2 a { 67 | text-decoration: none; 68 | font-size: 11px; 69 | line-height: 1.4em; 70 | font-weight: 300; 71 | font-family: Lucida Grande,Verdana,Geneva,sans-serif; 72 | color: #aaaaaa; 73 | } 74 | 75 | /*hide pulldown menu on mobile devices*/ 76 | @media (max-width: 768px) { /*tablet size defined by theme*/ 77 | #closeMe { 78 | display: none; 79 | } 80 | 81 | #pulldown { 82 | display: none; 83 | } 84 | 85 | #openToc { 86 | display: none; 87 | } 88 | } -------------------------------------------------------------------------------- /user_guide/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/down-pressed.png -------------------------------------------------------------------------------- /user_guide/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/down.png -------------------------------------------------------------------------------- /user_guide/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/file.png -------------------------------------------------------------------------------- /user_guide/_static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /user_guide/_static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /user_guide/_static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /user_guide/_static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /user_guide/_static/js/oldtheme.js: -------------------------------------------------------------------------------- 1 | $( document ).ready(function() { 2 | // Shift nav in mobile when clicking the menu. 3 | $(document).on('click', "[data-toggle='wy-nav-top']", function() { 4 | $("[data-toggle='wy-nav-shift']").toggleClass("shift"); 5 | $("[data-toggle='rst-versions']").toggleClass("shift"); 6 | }); 7 | // Close menu when you click a link. 8 | $(document).on('click', ".wy-menu-vertical .current ul li a", function() { 9 | $("[data-toggle='wy-nav-shift']").removeClass("shift"); 10 | $("[data-toggle='rst-versions']").toggleClass("shift"); 11 | }); 12 | $(document).on('click', "[data-toggle='rst-current-version']", function() { 13 | $("[data-toggle='rst-versions']").toggleClass("shift-up"); 14 | }); 15 | // Make tables responsive 16 | $("table.docutils:not(.field-list)").wrap("
"); 17 | }); 18 | 19 | window.SphinxRtdTheme = (function (jquery) { 20 | var stickyNav = (function () { 21 | var navBar, 22 | win, 23 | stickyNavCssClass = 'stickynav', 24 | applyStickNav = function () { 25 | if (navBar.height() <= win.height()) { 26 | navBar.addClass(stickyNavCssClass); 27 | } else { 28 | navBar.removeClass(stickyNavCssClass); 29 | } 30 | }, 31 | enable = function () { 32 | applyStickNav(); 33 | win.on('resize', applyStickNav); 34 | }, 35 | init = function () { 36 | navBar = jquery('nav.wy-nav-side:first'); 37 | win = jquery(window); 38 | }; 39 | jquery(init); 40 | return { 41 | enable : enable 42 | }; 43 | }()); 44 | return { 45 | StickyNav : stickyNav 46 | }; 47 | }($)); 48 | -------------------------------------------------------------------------------- /user_guide/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/minus.png -------------------------------------------------------------------------------- /user_guide/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/plus.png -------------------------------------------------------------------------------- /user_guide/_static/pygments.css: -------------------------------------------------------------------------------- 1 | .highlight .hll { background-color: #ffffcc } 2 | .highlight { background: #ffffff; } 3 | .highlight .c { color: #999988; font-style: italic } /* Comment */ 4 | .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ 5 | .highlight .k { font-weight: bold } /* Keyword */ 6 | .highlight .o { font-weight: bold } /* Operator */ 7 | .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ 8 | .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ 9 | .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ 10 | .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ 11 | .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ 12 | .highlight .ge { font-style: italic } /* Generic.Emph */ 13 | .highlight .gr { color: #aa0000 } /* Generic.Error */ 14 | .highlight .gh { color: #999999 } /* Generic.Heading */ 15 | .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ 16 | .highlight .go { color: #888888 } /* Generic.Output */ 17 | .highlight .gp { color: #555555 } /* Generic.Prompt */ 18 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 19 | .highlight .gu { color: #aaaaaa } /* Generic.Subheading */ 20 | .highlight .gt { color: #aa0000 } /* Generic.Traceback */ 21 | .highlight .kc { font-weight: bold } /* Keyword.Constant */ 22 | .highlight .kd { font-weight: bold } /* Keyword.Declaration */ 23 | .highlight .kn { font-weight: bold } /* Keyword.Namespace */ 24 | .highlight .kp { font-weight: bold } /* Keyword.Pseudo */ 25 | .highlight .kr { font-weight: bold } /* Keyword.Reserved */ 26 | .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ 27 | .highlight .m { color: #009999 } /* Literal.Number */ 28 | .highlight .s { color: #bb8844 } /* Literal.String */ 29 | .highlight .na { color: #008080 } /* Name.Attribute */ 30 | .highlight .nb { color: #999999 } /* Name.Builtin */ 31 | .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ 32 | .highlight .no { color: #008080 } /* Name.Constant */ 33 | .highlight .ni { color: #800080 } /* Name.Entity */ 34 | .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ 35 | .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ 36 | .highlight .nn { color: #555555 } /* Name.Namespace */ 37 | .highlight .nt { color: #000080 } /* Name.Tag */ 38 | .highlight .nv { color: #008080 } /* Name.Variable */ 39 | .highlight .ow { font-weight: bold } /* Operator.Word */ 40 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 41 | .highlight .mb { color: #009999 } /* Literal.Number.Bin */ 42 | .highlight .mf { color: #009999 } /* Literal.Number.Float */ 43 | .highlight .mh { color: #009999 } /* Literal.Number.Hex */ 44 | .highlight .mi { color: #009999 } /* Literal.Number.Integer */ 45 | .highlight .mo { color: #009999 } /* Literal.Number.Oct */ 46 | .highlight .sb { color: #bb8844 } /* Literal.String.Backtick */ 47 | .highlight .sc { color: #bb8844 } /* Literal.String.Char */ 48 | .highlight .sd { color: #bb8844 } /* Literal.String.Doc */ 49 | .highlight .s2 { color: #bb8844 } /* Literal.String.Double */ 50 | .highlight .se { color: #bb8844 } /* Literal.String.Escape */ 51 | .highlight .sh { color: #bb8844 } /* Literal.String.Heredoc */ 52 | .highlight .si { color: #bb8844 } /* Literal.String.Interpol */ 53 | .highlight .sx { color: #bb8844 } /* Literal.String.Other */ 54 | .highlight .sr { color: #808000 } /* Literal.String.Regex */ 55 | .highlight .s1 { color: #bb8844 } /* Literal.String.Single */ 56 | .highlight .ss { color: #bb8844 } /* Literal.String.Symbol */ 57 | .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ 58 | .highlight .vc { color: #008080 } /* Name.Variable.Class */ 59 | .highlight .vg { color: #008080 } /* Name.Variable.Global */ 60 | .highlight .vi { color: #008080 } /* Name.Variable.Instance */ 61 | .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ -------------------------------------------------------------------------------- /user_guide/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/up-pressed.png -------------------------------------------------------------------------------- /user_guide/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/_static/up.png -------------------------------------------------------------------------------- /user_guide/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timwoodart/codeignitor-requirejs-backbone/0daec99eec18f21d87f019c0af799635d2f9fde3/user_guide/objects.inv --------------------------------------------------------------------------------