codeigniter_vender 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/MIT-LICENSE +20 -0
- data/README +40 -0
- data/Rakefile +18 -0
- data/VERSION +1 -0
- data/codeigniter_vender.gemspec +389 -0
- data/generators/ci_app/USAGE +8 -0
- data/generators/ci_app/ci_app_generator.rb +12 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/index.php +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/license.txt +52 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/autoload.php +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/config.php +329 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/constants.php +41 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/database.php +55 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/doctypes.php +15 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/hooks.php +16 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/mimes.php +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/routes.php +48 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/smileys.php +66 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/user_agents.php +175 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/welcome.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_404.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_db.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_general.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_php.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/hooks/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/models/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/welcome_message.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/cache/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base4.php +69 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base5.php +56 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/CodeIgniter.php +280 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Common.php +421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Compat.php +93 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB.php +146 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_active_rec.php +1820 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_cache.php +195 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_driver.php +1366 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_forge.php +375 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_result.php +342 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_utility.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_driver.php +667 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_driver.php +670 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_utility.php +245 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_driver.php +671 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_driver.php +780 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_result.php +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_utility.php +122 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_driver.php +639 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_forge.php +266 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_result.php +228 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_utility.php +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_driver.php +684 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_utility.php +124 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_driver.php +657 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_forge.php +265 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_result.php +179 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_utility.php +141 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/texb.ttf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/array_helper.php +78 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/compatibility_helper.php +498 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/cookie_helper.php +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/date_helper.php +611 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/directory_helper.php +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/download_helper.php +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/email_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/file_helper.php +464 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/form_helper.php +1025 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/html_helper.php +416 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/inflector_helper.php +171 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/language_helper.php +58 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/number_helper.php +75 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/path_helper.php +72 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/security_helper.php +126 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/smiley_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/string_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/text_helper.php +462 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/typography_helper.php +71 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/url_helper.php +593 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/xml_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/calendar_lang.php +51 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/date_lang.php +60 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/db_lang.php +28 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/email_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/form_validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/ftp_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/imglib_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/number_lang.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/profiler_lang.php +19 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/scaffolding_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/unit_test_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/upload_lang.php +22 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Benchmark.php +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Calendar.php +477 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Cart.php +550 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Config.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Controller.php +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Email.php +2041 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Encrypt.php +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Exceptions.php +174 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Form_validation.php +1278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Ftp.php +618 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Hooks.php +226 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Image_lib.php +1544 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Input.php +1067 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Language.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Loader.php +1085 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Log.php +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Model.php +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Output.php +409 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Pagination.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Parser.php +173 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Profiler.php +392 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Router.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Session.php +758 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Sha1.php +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Table.php +440 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Trackback.php +547 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Typography.php +406 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/URI.php +586 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Unit_test.php +347 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Upload.php +970 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/User_agent.php +502 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Validation.php +875 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpc.php +1421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpcs.php +536 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Zip.php +359 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/logs/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/captcha_pi.php +356 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/js_calendar_pi.php +629 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/Scaffolding.php +291 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/background.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/add.php +32 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/delete.php +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/edit.php +33 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/footer.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/header.php +29 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/no_data.php +8 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/stylesheet.css +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/view.php +27 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/changelog.html +1080 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/active_record.html +757 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/caching.html +220 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/call_function.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/configuration.html +157 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/connecting.html +186 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/examples.html +217 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/fields.html +163 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/forge.html +234 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/helpers.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/queries.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/results.html +238 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/table_data.html +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/transactions.html +200 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/utilities.html +295 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/index.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/template.html +128 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/alternative_php.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/ancillary_classes.html +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/autoloader.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/caching.html +115 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/common_functions.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/controllers.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/core_classes.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/creating_libraries.html +298 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/credits.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/errors.html +138 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/helpers.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/hooks.html +167 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/libraries.html +94 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/managing_apps.html +133 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/models.html +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/plugins.html +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/profiling.html +104 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/quick_reference.html +77 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/requirements.html +82 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/reserved_names.html +156 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/routing.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/scaffolding.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/security.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/styleguide.html +687 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/urls.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/views.html +274 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/array_helper.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/compatibility_helper.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/cookie_helper.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/date_helper.html +408 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/directory_helper.html +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/download_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/email_helper.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/file_helper.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/form_helper.html +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/html_helper.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/inflector_helper.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/language_helper.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/number_helper.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/path_helper.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/security_helper.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/smiley_helper.html +215 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/string_helper.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/text_helper.html +192 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/typography_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/url_helper.html +289 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/xml_helper.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/appflowchart.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/arrow.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo_flame.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_quick_ref.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/file.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/folder.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_bg_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_separator_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_toggle_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/smile.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/transparent.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/downloads.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/index.html +97 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/troubleshooting.html +90 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_120.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_130.html +203 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_131.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_132.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_133.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_140.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_141.html +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_150.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_152.html +111 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_153.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_154.html +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_160.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_161.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_162.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_163.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_170.html +121 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_171.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_172.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_b11.html +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrading.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/benchmark.html +198 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/calendar.html +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/cart.html +346 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/config.html +181 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/email.html +307 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/encryption.html +182 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/file_uploading.html +451 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/form_validation.html +1221 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/ftp.html +303 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/image_lib.html +666 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/input.html +231 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/language.html +137 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/loader.html +214 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/output.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/pagination.html +218 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/parser.html +208 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/sessions.html +311 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/table.html +292 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/trackback.html +246 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/typography.html +160 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/unit_testing.html +205 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/uri.html +252 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/user_agent.html +201 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/validation.html +740 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/xmlrpc.html +517 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/zip.html +278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/license.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/hacks.txt +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.js +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.pack.js +241 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/nav.js +139 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/prototype.lite.js +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/user_guide_menu.js +4 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/appflow.html +95 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/at_a_glance.html +172 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/cheatsheets.html +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/features.html +120 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/getting_started.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/goals.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/index.html +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/mvc.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/toc.html +209 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/userguide.css +406 -0
- data/generators/ci_app/templates/README +1 -0
- data/generators/ci_controller/USAGE +2 -0
- data/generators/ci_controller/ci_controller_generator.rb +11 -0
- data/generators/ci_controller/templates/ci_controller.php.erb +15 -0
- data/generators/ci_controller/templates/ci_view.php.erb +8 -0
- data/generators/ci_layout/USAGE +2 -0
- data/generators/ci_layout/ci_layout_generator.rb +24 -0
- data/generators/ci_layout/templates/application_layout.php.erb +19 -0
- data/generators/ci_model/USAGE +2 -0
- data/generators/ci_model/ci_model_generator.rb +42 -0
- data/generators/ci_model/templates/ci_model.php.erb +15 -0
- data/generators/ci_model/templates/model.rb +5 -0
- data/generators/ci_model/templates/model_migration.rb.erb +16 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/codeigniter_vender.rb +1 -0
- data/lib/tasks/app.rake +8 -0
- data/test/codeigniter_vender_test.rb +8 -0
- data/test/test_helper.rb +3 -0
- data/uninstall.rb +1 -0
- metadata +411 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Quick Reference Chart : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Quick Reference Chart
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
<h1>Quick Reference Chart</h1>
|
|
59
|
+
|
|
60
|
+
<p>For a PDF version of this chart, <a href="http://codeigniter.com/download_files/ci_quick_ref.pdf">click here</a>.</p>
|
|
61
|
+
|
|
62
|
+
<p><img src="../images/ci_quick_ref.png" width="763" height="994" border="0" /></p>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
<!-- END CONTENT -->
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<div id="footer">
|
|
69
|
+
<p>
|
|
70
|
+
<a href="#top">Top of Page</a> ·
|
|
71
|
+
<a href="../index.html">User Guide Home</a>
|
|
72
|
+
</p>
|
|
73
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
</body>
|
|
77
|
+
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Server Requirements : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Server Requirements
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
<h1>Server Requirements</h1>
|
|
59
|
+
|
|
60
|
+
<ul>
|
|
61
|
+
<li><a href="http://www.php.net/">PHP</a> version 4.3.2 or newer.</li>
|
|
62
|
+
<li>A Database is required for most web application programming. Current supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC.</li>
|
|
63
|
+
</ul>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
<!-- END CONTENT -->
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<div id="footer">
|
|
73
|
+
<p>
|
|
74
|
+
<a href="#top">Top of Page</a> ·
|
|
75
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
76
|
+
Next Topic: <a href="../license.html">License Agreement</a>
|
|
77
|
+
</p>
|
|
78
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
</body>
|
|
82
|
+
</html>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Reserved Names : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Controllers
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
<h1>Reserved Names</h1>
|
|
59
|
+
|
|
60
|
+
<p>In order to help out, CodeIgniter uses a series of functions and names in its operation. Because of this, some names cannot be used by a developer. Following is a list of reserved names that cannot be used.</p>
|
|
61
|
+
<h3>Controller names</h3>
|
|
62
|
+
<p>Since your controller classes will extend the main application controller you
|
|
63
|
+
must be careful not to name your functions identically to the ones used by that class, otherwise your local functions
|
|
64
|
+
will override them. The following
|
|
65
|
+
is a list of reserved names. Do not name your controller functions any of these:</p>
|
|
66
|
+
<ul>
|
|
67
|
+
<li>Controller</li>
|
|
68
|
+
<li>CI_Base</li>
|
|
69
|
+
<li>_ci_initialize</li>
|
|
70
|
+
<li>_ci_scaffolding</li>
|
|
71
|
+
<li>index</li>
|
|
72
|
+
</ul>
|
|
73
|
+
<p><br />
|
|
74
|
+
If you are running PHP 4 there are some additional reserved names. These ONLY apply if you are running PHP 4.</p>
|
|
75
|
+
<ul>
|
|
76
|
+
<li>CI_Loader</li>
|
|
77
|
+
<li>config</li>
|
|
78
|
+
<li>database</li>
|
|
79
|
+
<li>dbutil</li>
|
|
80
|
+
<li>dbforge</li>
|
|
81
|
+
<li>file</li>
|
|
82
|
+
<li>helper</li>
|
|
83
|
+
<li>helpers</li>
|
|
84
|
+
<li>language</li>
|
|
85
|
+
<li>library</li>
|
|
86
|
+
<li>model</li>
|
|
87
|
+
<li>plugin</li>
|
|
88
|
+
<li>plugins</li>
|
|
89
|
+
<li>scaffolding</li>
|
|
90
|
+
<li>script</li>
|
|
91
|
+
<li>view</li>
|
|
92
|
+
<li>vars</li>
|
|
93
|
+
<li>_ci_assign_to_models</li>
|
|
94
|
+
<li>_ci_autoloader</li>
|
|
95
|
+
<li>_ci_init_class</li>
|
|
96
|
+
<li>_ci_init_scaffolding</li>
|
|
97
|
+
<li>_ci_is_instance</li>
|
|
98
|
+
<li>_ci_load</li>
|
|
99
|
+
<li>_ci_load_class</li>
|
|
100
|
+
<li>_ci_object_to_array</li>
|
|
101
|
+
</ul>
|
|
102
|
+
<h3>Functions</h3>
|
|
103
|
+
<ul>
|
|
104
|
+
<li>is_really_writable()</li>
|
|
105
|
+
<li>load_class()</li>
|
|
106
|
+
<li>get_config()</li>
|
|
107
|
+
<li>config_item()</li>
|
|
108
|
+
<li>show_error()</li>
|
|
109
|
+
<li>show_404()</li>
|
|
110
|
+
<li>log_message()</li>
|
|
111
|
+
<li>_exception_handler()</li>
|
|
112
|
+
<li>get_instance()</li>
|
|
113
|
+
</ul>
|
|
114
|
+
<h3>Variables</h3>
|
|
115
|
+
<ul>
|
|
116
|
+
<li>$config</li>
|
|
117
|
+
<li>$mimes</li>
|
|
118
|
+
<li>$lang</li>
|
|
119
|
+
</ul>
|
|
120
|
+
<h3>Constants</h3>
|
|
121
|
+
<ul>
|
|
122
|
+
<li>EXT</li>
|
|
123
|
+
<li>FCPATH</li>
|
|
124
|
+
<li>SELF</li>
|
|
125
|
+
<li>BASEPATH</li>
|
|
126
|
+
<li>APPPATH</li>
|
|
127
|
+
<li>CI_VERSION</li>
|
|
128
|
+
<li>FILE_READ_MODE</li>
|
|
129
|
+
<li>FILE_WRITE_MODE</li>
|
|
130
|
+
<li>DIR_READ_MODE</li>
|
|
131
|
+
<li>DIR_WRITE_MODE</li>
|
|
132
|
+
<li>FOPEN_READ</li>
|
|
133
|
+
<li>FOPEN_READ_WRITE</li>
|
|
134
|
+
<li>FOPEN_WRITE_CREATE_DESTRUCTIVE</li>
|
|
135
|
+
<li>FOPEN_READ_WRITE_CREATE_DESTRUCTIVE</li>
|
|
136
|
+
<li>FOPEN_WRITE_CREATE</li>
|
|
137
|
+
<li>FOPEN_READ_WRITE_CREATE</li>
|
|
138
|
+
<li>FOPEN_WRITE_CREATE_STRICT</li>
|
|
139
|
+
<li>FOPEN_READ_WRITE_CREATE_STRICT</li>
|
|
140
|
+
</ul>
|
|
141
|
+
</div>
|
|
142
|
+
<!-- END CONTENT -->
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<div id="footer">
|
|
146
|
+
<p>
|
|
147
|
+
Previous Topic: <a href="controllers.html">Controllers</a>
|
|
148
|
+
·
|
|
149
|
+
<a href="#top">Top of Page</a> ·
|
|
150
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
151
|
+
Next Topic: <a href="views.html">Views</a></p>
|
|
152
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
</body>
|
|
156
|
+
</html>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>URI Routing : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
URI Routing
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
<h1>URI Routing</h1>
|
|
59
|
+
|
|
60
|
+
<p>Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method.
|
|
61
|
+
The segments in a URI normally follow this pattern:</p>
|
|
62
|
+
|
|
63
|
+
<code>example.com/<dfn>class</dfn>/<samp>function</samp>/<var>id</var>/</code>
|
|
64
|
+
|
|
65
|
+
<p>In some instances, however, you may want to remap this relationship so that a different class/function can be called
|
|
66
|
+
instead of the one corresponding to the URL.</p>
|
|
67
|
+
|
|
68
|
+
<p>For example, lets say you want your URLs to have this prototype:</p>
|
|
69
|
+
|
|
70
|
+
<p>
|
|
71
|
+
example.com/product/1/<br />
|
|
72
|
+
example.com/product/2/<br />
|
|
73
|
+
example.com/product/3/<br />
|
|
74
|
+
example.com/product/4/
|
|
75
|
+
</p>
|
|
76
|
+
|
|
77
|
+
<p>Normally the second segment of the URL is reserved for the function name, but in the example above it instead has a product ID.
|
|
78
|
+
To overcome this, CodeIgniter allows you to remap the URI handler.</p>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
<h2>Setting your own routing rules</h2>
|
|
82
|
+
|
|
83
|
+
<p>Routing rules are defined in your <var>application/config/routes.php</var> file. In it you'll see an array called <dfn>$route</dfn> that
|
|
84
|
+
permits you to specify your own routing criteria. Routes can either be specified using <dfn>wildcards</dfn> or <dfn>Regular Expressions</dfn></p>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<h2>Wildcards</h2>
|
|
88
|
+
|
|
89
|
+
<p>A typical wildcard route might look something like this:</p>
|
|
90
|
+
|
|
91
|
+
<code>$route['product/:num'] = "catalog/product_lookup";</code>
|
|
92
|
+
|
|
93
|
+
<p>In a route, the array key contains the URI to be matched, while the array value contains the destination it should be re-routed to.
|
|
94
|
+
In the above example, if the literal word "product" is found in the first segment of the URL, and a number is found in the second segment,
|
|
95
|
+
the "catalog" class and the "product_lookup" method are instead used.</p>
|
|
96
|
+
|
|
97
|
+
<p>You can match literal values or you can use two wildcard types:</p>
|
|
98
|
+
|
|
99
|
+
<p>
|
|
100
|
+
:num<br />
|
|
101
|
+
:any
|
|
102
|
+
</p>
|
|
103
|
+
|
|
104
|
+
<p><strong>:num</strong> will match a segment containing only numbers.<br />
|
|
105
|
+
<strong>:any</strong> will match a segment containing any character.
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
<p class="important"><strong>Note:</strong> Routes will run in the order they are defined.
|
|
109
|
+
Higher routes will always take precedence over lower ones.</p>
|
|
110
|
+
|
|
111
|
+
<h2>Examples</h2>
|
|
112
|
+
|
|
113
|
+
<p>Here are a few routing examples:</p>
|
|
114
|
+
|
|
115
|
+
<code>$route['journals'] = "blogs";</code>
|
|
116
|
+
<p>A URL containing the word "journals" in the first segment will be remapped to the "blogs" class.</p>
|
|
117
|
+
|
|
118
|
+
<code>$route['blog/joe'] = "blogs/users/34";</code>
|
|
119
|
+
<p>A URL containing the segments blog/joe will be remapped to the "blogs" class and the "users" method. The ID will be set to "34".</p>
|
|
120
|
+
|
|
121
|
+
<code>$route['product/:any'] = "catalog/product_lookup";</code>
|
|
122
|
+
<p>A URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup" method.</p>
|
|
123
|
+
|
|
124
|
+
<code>$route['product/(:num)'] = "catalog/product_lookup_by_id/$1";</code>
|
|
125
|
+
<p>A URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup_by_id" method passing in the match as a variable to the function.</p>
|
|
126
|
+
|
|
127
|
+
<p class="important"><strong>Important:</strong> Do not use leading/trailing slashes.</p>
|
|
128
|
+
|
|
129
|
+
<h2>Regular Expressions</h2>
|
|
130
|
+
|
|
131
|
+
<p>If you prefer you can use regular expressions to define your routing rules. Any valid regular expression is allowed, as are back-references.</p>
|
|
132
|
+
|
|
133
|
+
<p class="important"><strong>Note:</strong> If you use back-references you must use the dollar syntax rather than the double backslash syntax.</p>
|
|
134
|
+
|
|
135
|
+
<p>A typical RegEx route might look something like this:</p>
|
|
136
|
+
|
|
137
|
+
<code>$route['products/([a-z]+)/(\d+)'] = "$1/id_$2";</code>
|
|
138
|
+
|
|
139
|
+
<p>In the above example, a URI similar to <dfn>products/shirts/123</dfn> would instead call the <dfn>shirts</dfn> controller class and the <dfn>id_123</dfn> function.</p>
|
|
140
|
+
|
|
141
|
+
<p>You can also mix and match wildcards with regular expressions.</p>
|
|
142
|
+
|
|
143
|
+
<h2>Reserved Routes</h2>
|
|
144
|
+
|
|
145
|
+
<p>There are two reserved routes:</p>
|
|
146
|
+
|
|
147
|
+
<code>$route['default_controller'] = 'welcome';</code>
|
|
148
|
+
|
|
149
|
+
<p>This route indicates which controller class should be loaded if the URI contains no data, which will be the case
|
|
150
|
+
when people load your root URL. In the above example, the "welcome" class would be loaded. You
|
|
151
|
+
are encouraged to always have a default route otherwise a 404 page will appear by default.</p>
|
|
152
|
+
|
|
153
|
+
<code>$route['scaffolding_trigger'] = 'scaffolding';</code>
|
|
154
|
+
|
|
155
|
+
<p>This route lets you set a secret word, which when present in the URL, triggers the scaffolding feature.
|
|
156
|
+
Please read the <a href="scaffolding.html">Scaffolding</a> page for details.</p>
|
|
157
|
+
|
|
158
|
+
<p class="important"><strong>Important:</strong> The reserved routes must come before any wildcard or regular expression routes.</p>
|
|
159
|
+
|
|
160
|
+
</div>
|
|
161
|
+
<!-- END CONTENT -->
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<div id="footer">
|
|
165
|
+
<p>
|
|
166
|
+
Previous Topic: <a href="scaffolding.html">Scaffolding</a>
|
|
167
|
+
·
|
|
168
|
+
<a href="#top">Top of Page</a> ·
|
|
169
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
170
|
+
Next Topic: <a href="errors.html">Error Handling</a>
|
|
171
|
+
</p>
|
|
172
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
</body>
|
|
176
|
+
</html>
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Scaffolding : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Scaffolding
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
<h1>Scaffolding</h1>
|
|
59
|
+
|
|
60
|
+
<p class="important">Scaffolding has been deprecated from CodeIgniter as of 1.6.0.</p>
|
|
61
|
+
|
|
62
|
+
<p>CodeIgniter's Scaffolding feature provides a fast and very convenient way to add, edit, or delete information in your database
|
|
63
|
+
during development.</p>
|
|
64
|
+
|
|
65
|
+
<p class="important"><strong>Very Important:</strong> Scaffolding is intended for development use only. It provides very little
|
|
66
|
+
security other than a "secret" word, so anyone who has access to your CodeIgniter site can potentially edit or delete your information.
|
|
67
|
+
If you use scaffolding make sure you disable it immediately after you are through using it. DO NOT leave it enabled on a live site.
|
|
68
|
+
And please, set a secret word before you use it.</p>
|
|
69
|
+
|
|
70
|
+
<h2>Why would someone use scaffolding?</h2>
|
|
71
|
+
|
|
72
|
+
<p>Here's a typical scenario: You create a new database table during development and you'd like a quick way to insert some data
|
|
73
|
+
into it to work with. Without scaffolding your choices are either to write some inserts using the command line or to use a
|
|
74
|
+
database management tool like phpMyAdmin. With CodeIgniter's scaffolding feature you can quickly add some data using its browser
|
|
75
|
+
interface. And when you are through using the data you can easily delete it.</p>
|
|
76
|
+
|
|
77
|
+
<h2>Setting a Secret Word</h2>
|
|
78
|
+
|
|
79
|
+
<p>Before enabling scaffolding please take a moment to set a secret word. This word, when encountered in your URL,
|
|
80
|
+
will launch the scaffolding interface, so please pick something obscure that no one is likely to guess.</p>
|
|
81
|
+
|
|
82
|
+
<p>To set a secret word, open your <kbd>application/config/routes.php</kbd> file and look for this item:</p>
|
|
83
|
+
|
|
84
|
+
<code>$route['scaffolding_trigger'] = '';</code>
|
|
85
|
+
|
|
86
|
+
<p>Once you've found it add your own unique word.</p>
|
|
87
|
+
|
|
88
|
+
<p class="important"><strong>Note:</strong> The scaffolding word can <strong>not</strong> start with an underscore.</p>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<h2>Enabling Scaffolding</h2>
|
|
92
|
+
|
|
93
|
+
<p>Note: The information on this page assumes you already know how <a href="controllers.html">controllers</a> work, and that you have
|
|
94
|
+
a working one available. It also assumes you have configured CodeIgniter to auto-connect to your <a href="../database/index.html">database</a>.
|
|
95
|
+
If not, the information here won't be very relevant, so you are encouraged to go through those sections first.
|
|
96
|
+
Lastly, it assumes you understand what a class constructor is. If not, read the last section of the <a href="controllers.html">controllers</a>
|
|
97
|
+
page.</p>
|
|
98
|
+
|
|
99
|
+
<p>To enable scaffolding you will initialize it in your constructor like this:</p>
|
|
100
|
+
|
|
101
|
+
<code>
|
|
102
|
+
<?php<br />
|
|
103
|
+
class Blog extends Controller {<br />
|
|
104
|
+
<br />
|
|
105
|
+
function Blog()<br />
|
|
106
|
+
{<br />
|
|
107
|
+
parent::Controller();<br /><br />
|
|
108
|
+
<samp>$this->load->scaffolding(</samp><kbd>'table_name'</kbd>);<br />
|
|
109
|
+
}<br />
|
|
110
|
+
}<br />
|
|
111
|
+
?></code>
|
|
112
|
+
|
|
113
|
+
<p>Where <kbd>table_name</kbd> is the name of the table (table, not database) you wish to work with.</p>
|
|
114
|
+
|
|
115
|
+
<p>Once you've initialized scaffolding, you will access it with this URL prototype:</p>
|
|
116
|
+
|
|
117
|
+
<code>example.com/index.php/<var>class</var>/<dfn>secret_word</dfn>/</code>
|
|
118
|
+
|
|
119
|
+
<p>For example, using a controller named <var>Blog</var>, and <dfn>abracadabra</dfn> as the secret word,
|
|
120
|
+
you would access scaffolding like this:</p>
|
|
121
|
+
|
|
122
|
+
<code>example.com/index.php/<var>blog</var>/<dfn>abracadabra</dfn>/</code>
|
|
123
|
+
|
|
124
|
+
<p>The scaffolding interface should be self-explanatory. You can add, edit or delete records.</p>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<h2>A Final Note:</h2>
|
|
128
|
+
|
|
129
|
+
<p>The scaffolding feature will only work with tables that contain a primary key, as this is information is needed to perform the various
|
|
130
|
+
database functions.</p>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</div>
|
|
134
|
+
<!-- END CONTENT -->
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
<div id="footer">
|
|
138
|
+
<p>
|
|
139
|
+
Previous Topic: <a href="common_functions.html">Common Functions</a> ·
|
|
140
|
+
<a href="#top">Top of Page</a> ·
|
|
141
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
142
|
+
Next Topic: <a href="routing.html">URI Routing</a></p>
|
|
143
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
</body>
|
|
147
|
+
</html>
|