W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
Codeigniter 3 官方文档
User guide: General
Alternate PHP Syntax for View Files
Auto-loading Resources
CodeIgniter URLs
Common Functions
Compatibility Functions
Controllers
Creating Ancillary Classes
Creating Core System Classes
Creating Drivers
Creating Libraries
Error Handling
General Topics
Handling Multiple Environments
Helper Functions
Hooks - Extending the Framework Core
Managing your Applications
Models
PHP Style Guide
Profiling Your Application
Reserved Names
Running via the CLI
Security
URI Routing
Using CodeIgniter Drivers
Using CodeIgniter Libraries
Views
Web Page Caching
String
alternator()
increment_string()
quotes_to_entities()
random_string()
reduce_double_slashes()
reduce_multiples()
repeater()
String Helper
strip_quotes()
strip_slashes()
trim_slashes()
URL
anchor()
anchor_popup()
auto_link()
base_url()
current_url()
index_page()
mailto()
prep_url()
redirect()
safe_mailto()
site_url()
uri_string()
URL Helper
url_title()
User guide: Overview
Application Flow Chart
CodeIgniter at a Glance
CodeIgniter Features
CodeIgniter Overview
Design and Architectural Goals
Getting Started With CodeIgniter
Model-View-Controller
Array
Array Helper
element()
elements()
random_element()
Functions
array_column()
config_item()
function_usable()
get_instance()
get_mimes()
hash_equals()
hash_pbkdf2()
hex2bin()
html_escape()
is_cli()
is_https()
is_php()
is_really_writable()
log_message()
mb_strlen()
mb_strpos()
mb_substr()
password_get_info()
password_hash()
password_needs_rehash()
password_verify()
remove_invisible_characters()
set_status_header()
show_404()
show_error()
Text
ascii_to_entities()
character_limiter()
convert_accented_characters()
ellipsize()
highlight_code()
highlight_phrase()
Text Helper
word_censor()
word_limiter()
word_wrap()
Typography
auto_typography()
CI_Typography
CI_Typography::auto_typography()
CI_Typography::format_characters()
CI_Typography::nl2br_except_pre()
entity_decode()
nl2br_except_pre()
Typography Class
Typography Helper
Benchmarking
Benchmarking Class
CI_Benchmark
CI_Benchmark::elapsed_time()
CI_Benchmark::mark()
CI_Benchmark::memory_usage()
HTML
br()
doctype()
heading()
HTML Helper
img()
link_tag()
meta()
nbs()
ol()
ul()
Number
byte_format()
Number Helper
Caching
Caching Driver
CI_Cache
CI_Cache::cache_info()
CI_Cache::clean()
CI_Cache::decrement()
CI_Cache::delete()
CI_Cache::get()
CI_Cache::get_metadata()
CI_Cache::increment()
CI_Cache::is_supported()
CI_Cache::save()
Calendaring
Calendaring Class
CI_Calendar
CI_Calendar::adjust_date()
CI_Calendar::default_template()
CI_Calendar::generate()
CI_Calendar::get_day_names()
CI_Calendar::get_month_name()
CI_Calendar::get_total_days()
CI_Calendar::initialize()
CI_Calendar::parse_template()
Inflector
camelize()
humanize()
Inflector Helper
is_countable()
plural()
singular()
underscore()
CAPTCHA
CAPTCHA Helper
create_captcha()
Shopping Cart
CI_Cart
CI_Cart::contents()
CI_Cart::destroy()
CI_Cart::get_item()
CI_Cart::has_options()
CI_Cart::insert()
CI_Cart::product_options()
CI_Cart::remove()
CI_Cart::total()
CI_Cart::total_items()
CI_Cart::update()
Shopping Cart Class
Config
CI_Config
CI_Config::base_url()
CI_Config::item()
CI_Config::load()
CI_Config::set_item()
CI_Config::site_url()
CI_Config::slash_item()
CI_Config::system_url()
Config Class
Database
CI_DB_driver
CI_DB_driver::affected_rows()
CI_DB_driver::cache_delete()
CI_DB_driver::cache_delete_all()
CI_DB_driver::cache_off()
CI_DB_driver::cache_on()
CI_DB_driver::cache_set_path()
CI_DB_driver::call_function()
CI_DB_driver::close()
CI_DB_driver::compile_binds()
CI_DB_driver::count_all()
CI_DB_driver::db_connect()
CI_DB_driver::db_pconnect()
CI_DB_driver::db_select()
CI_DB_driver::db_set_charset()
CI_DB_driver::display_error()
CI_DB_driver::elapsed_time()
CI_DB_driver::escape()
CI_DB_driver::escape_identifiers()
CI_DB_driver::escape_like_str()
CI_DB_driver::escape_str()
CI_DB_driver::field_data()
CI_DB_driver::field_exists()
CI_DB_driver::initialize()
CI_DB_driver::insert_string()
CI_DB_driver::is_write_type()
CI_DB_driver::last_query()
CI_DB_driver::list_fields()
CI_DB_driver::list_tables()
CI_DB_driver::platform()
CI_DB_driver::primary()
CI_DB_driver::protect_identifiers()
CI_DB_driver::query()
CI_DB_driver::reconnect()
CI_DB_driver::simple_query()
CI_DB_driver::table_exists()
CI_DB_driver::total_queries()
CI_DB_driver::trans_complete()
CI_DB_driver::trans_off()
CI_DB_driver::trans_start()
CI_DB_driver::trans_status()
CI_DB_driver::trans_strict()
CI_DB_driver::update_string()
CI_DB_driver::version()
CI_DB_forge
CI_DB_forge::add_column()
CI_DB_forge::add_field()
CI_DB_forge::add_key()
CI_DB_forge::create_database()
CI_DB_forge::create_table()
CI_DB_forge::drop_column()
CI_DB_forge::drop_database()
CI_DB_forge::drop_table()
CI_DB_forge::modify_column()
CI_DB_forge::rename_table()
CI_DB_query_builder
CI_DB_query_builder::count_all_results()
CI_DB_query_builder::dbprefix()
CI_DB_query_builder::delete()
CI_DB_query_builder::distinct()
CI_DB_query_builder::empty_table()
CI_DB_query_builder::flush_cache()
CI_DB_query_builder::from()
CI_DB_query_builder::get()
CI_DB_query_builder::get_compiled_delete()
CI_DB_query_builder::get_compiled_insert()
CI_DB_query_builder::get_compiled_select()
CI_DB_query_builder::get_compiled_update()
CI_DB_query_builder::get_where()
CI_DB_query_builder::group_by()
CI_DB_query_builder::group_end()
CI_DB_query_builder::group_start()
CI_DB_query_builder::having()
CI_DB_query_builder::insert()
CI_DB_query_builder::insert_batch()
CI_DB_query_builder::join()
CI_DB_query_builder::like()
CI_DB_query_builder::limit()
CI_DB_query_builder::not_group_start()
CI_DB_query_builder::not_like()
CI_DB_query_builder::offset()
CI_DB_query_builder::order_by()
CI_DB_query_builder::or_group_start()
CI_DB_query_builder::or_having()
CI_DB_query_builder::or_like()
CI_DB_query_builder::or_not_group_start()
CI_DB_query_builder::or_not_like()
CI_DB_query_builder::or_where()
CI_DB_query_builder::or_where_in()
CI_DB_query_builder::or_where_not_in()
CI_DB_query_builder::replace()
CI_DB_query_builder::reset_query()
CI_DB_query_builder::select()
CI_DB_query_builder::select_avg()
CI_DB_query_builder::select_max()
CI_DB_query_builder::select_min()
CI_DB_query_builder::select_sum()
CI_DB_query_builder::set()
CI_DB_query_builder::set_dbprefix()
CI_DB_query_builder::set_insert_batch()
CI_DB_query_builder::set_update_batch()
CI_DB_query_builder::start_cache()
CI_DB_query_builder::stop_cache()
CI_DB_query_builder::truncate()
CI_DB_query_builder::update()
CI_DB_query_builder::update_batch()
CI_DB_query_builder::where()
CI_DB_query_builder::where_in()
CI_DB_query_builder::where_not_in()
CI_DB_result
CI_DB_result::custom_result_object()
CI_DB_result::custom_row_object()
CI_DB_result::data_seek()
CI_DB_result::field_data()
CI_DB_result::first_row()
CI_DB_result::free_result()
CI_DB_result::last_row()
CI_DB_result::list_fields()
CI_DB_result::next_row()
CI_DB_result::num_fields()
CI_DB_result::num_rows()
CI_DB_result::previous_row()
CI_DB_result::result()
CI_DB_result::result_array()
CI_DB_result::result_object()
CI_DB_result::row()
CI_DB_result::row_array()
CI_DB_result::row_object()
CI_DB_result::set_row()
CI_DB_result::unbuffered_row()
CI_DB_utility
CI_DB_utility::backup()
CI_DB_utility::csv_from_result()
CI_DB_utility::database_exists()
CI_DB_utility::list_databases()
CI_DB_utility::optimize_database()
CI_DB_utility::optimize_table()
CI_DB_utility::repair_table()
CI_DB_utility::xml_from_result()
Connecting to your Database
Custom Function Calls
Database Caching Class
Database Configuration
Database Forge Class
Database Metadata
Database Quick Start: Example Code
Database Reference
Database Utility Class
DB Driver Reference
Generating Query Results
Queries
Query Builder Class
Query Helper Methods
Transactions
Email
CI_Email
CI_Email::attach()
CI_Email::attachment_cid()
CI_Email::bcc()
CI_Email::cc()
CI_Email::clear()
CI_Email::from()
CI_Email::message()
CI_Email::print_debugger()
CI_Email::reply_to()
CI_Email::send()
CI_Email::set_alt_message()
CI_Email::set_header()
CI_Email::subject()
CI_Email::to()
Email Class
Email Helper
send_email()
valid_email()
Encrypt
CI_Encrypt
CI_Encrypt::decode()
CI_Encrypt::encode()
CI_Encrypt::encode_from_legacy()
CI_Encrypt::set_cipher()
CI_Encrypt::set_mode()
Encrypt Class
Encryption
CI_Encryption
CI_Encryption::create_key()
CI_Encryption::decrypt()
CI_Encryption::encrypt()
CI_Encryption::hkdf()
CI_Encryption::initialize()
Encryption Library
Form Validation
CI_Form_validation
CI_Form_validation::error()
CI_Form_validation::error_array()
CI_Form_validation::error_string()
CI_Form_validation::has_rule()
CI_Form_validation::reset_validation()
CI_Form_validation::run()
CI_Form_validation::set_data()
CI_Form_validation::set_error_delimiters()
CI_Form_validation::set_message()
CI_Form_validation::set_rules()
Form Validation
FTP
CI_FTP
CI_FTP::changedir()
CI_FTP::chmod()
CI_FTP::close()
CI_FTP::connect()
CI_FTP::delete_dir()
CI_FTP::delete_file()
CI_FTP::download()
CI_FTP::list_files()
CI_FTP::mirror()
CI_FTP::mkdir()
CI_FTP::move()
CI_FTP::rename()
CI_FTP::upload()
FTP Class
Image Manipulation
CI_Image_lib
CI_Image_lib::clear()
CI_Image_lib::crop()
CI_Image_lib::display_errors()
CI_Image_lib::initialize()
CI_Image_lib::resize()
CI_Image_lib::rotate()
CI_Image_lib::watermark()
Image Manipulation Class
Input
CI_Input
CI_Input::cookie()
CI_Input::get()
CI_Input::get_post()
CI_Input::get_request_header()
CI_Input::input_stream()
CI_Input::ip_address()
CI_Input::is_ajax_request()
CI_Input::is_cli_request()
CI_Input::method()
CI_Input::post()
CI_Input::post_get()
CI_Input::request_headers()
CI_Input::server()
CI_Input::set_cookie()
CI_Input::user_agent()
CI_Input::valid_ip()
Input Class
Language
CI_Lang
CI_Lang::line()
CI_Lang::load()
lang()
Language Class
Language Helper
Loader
CI_Loader
CI_Loader::add_package_path()
CI_Loader::clear_vars()
CI_Loader::config()
CI_Loader::database()
CI_Loader::dbforge()
CI_Loader::dbutil()
CI_Loader::driver()
CI_Loader::file()
CI_Loader::get_package_paths()
CI_Loader::get_var()
CI_Loader::get_vars()
CI_Loader::helper()
CI_Loader::is_loaded()
CI_Loader::language()
CI_Loader::library()
CI_Loader::model()
CI_Loader::remove_package_path()
CI_Loader::vars()
CI_Loader::view()
Loader Class
Migrations
CI_Migration
CI_Migration::current()
CI_Migration::error_string()
CI_Migration::find_migrations()
CI_Migration::latest()
CI_Migration::version()
Migrations Class
Output
CI_Output
CI_Output::append_output()
CI_Output::cache()
CI_Output::enable_profiler()
CI_Output::get_content_type()
CI_Output::get_header()
CI_Output::get_output()
CI_Output::set_content_type()
CI_Output::set_header()
CI_Output::set_output()
CI_Output::set_profiler_sections()
CI_Output::set_status_header()
CI_Output::_display()
Output Class
Pagination
CI_Pagination
CI_Pagination::create_links()
CI_Pagination::initialize()
Pagination Class
Template Parser
CI_Parser
CI_Parser::parse()
CI_Parser::parse_string()
CI_Parser::set_delimiters()
Template Parser Class
Security
CI_Security
CI_Security::entity_decode()
CI_Security::get_csrf_hash()
CI_Security::get_csrf_token_name()
CI_Security::get_random_bytes()
CI_Security::sanitize_filename()
CI_Security::xss_clean()
do_hash()
encode_php_tags()
sanitize_filename()
Security Class
Security Helper
strip_image_tags()
xss_clean()
Session
CI_Session
CI_Session::all_userdata()
CI_Session::flashdata()
CI_Session::get_flash_keys()
CI_Session::get_temp_keys()
CI_Session::has_userdata()
CI_Session::keep_flashdata()
CI_Session::mark_as_flash()
CI_Session::mark_as_temp()
CI_Session::sess_destroy()
CI_Session::sess_regenerate()
CI_Session::set_flashdata()
CI_Session::set_tempdata()
CI_Session::set_userdata()
CI_Session::tempdata()
CI_Session::unmark_flash()
CI_Session::unmark_temp()
CI_Session::unset_userdata()
CI_Session::userdata()
CI_Session::__get()
CI_Session::__set()
Session Library
HTML Table
CI_Table
CI_Table::add_row()
CI_Table::clear()
CI_Table::generate()
CI_Table::make_columns()
CI_Table::set_caption()
CI_Table::set_empty()
CI_Table::set_heading()
CI_Table::set_template()
HTML Table Class
Trackback
CI_Trackback
CI_Trackback::convert_ascii()
CI_Trackback::convert_xml()
CI_Trackback::data()
CI_Trackback::display_errors()
CI_Trackback::extract_urls()
CI_Trackback::get_id()
CI_Trackback::limit_characters()
CI_Trackback::process()
CI_Trackback::receive()
CI_Trackback::send()
CI_Trackback::send_error()
CI_Trackback::send_success()
CI_Trackback::set_error()
CI_Trackback::validate_url()
Trackback Class
Unit Testing
CI_Unit_test
CI_Unit_test::active()
CI_Unit_test::report()
CI_Unit_test::result()
CI_Unit_test::run()
CI_Unit_test::set_template()
CI_Unit_test::set_test_items()
CI_Unit_test::use_strict()
Unit Testing Class
File Uploading
CI_Upload
CI_Upload::data()
CI_Upload::display_errors()
CI_Upload::do_upload()
CI_Upload::initialize()
File Uploading Class
URI
CI_URI
CI_URI::assoc_to_uri()
CI_URI::rsegment()
CI_URI::rsegment_array()
CI_URI::ruri_string()
CI_URI::ruri_to_assoc()
CI_URI::segment()
CI_URI::segment_array()
CI_URI::slash_rsegment()
CI_URI::slash_segment()
CI_URI::total_rsegments()
CI_URI::total_segments()
CI_URI::uri_string()
CI_URI::uri_to_assoc()
URI Class
User Agent
CI_User_agent
CI_User_agent::accept_charset()
CI_User_agent::accept_lang()
CI_User_agent::agent_string()
CI_User_agent::browser()
CI_User_agent::charsets()
CI_User_agent::is_browser()
CI_User_agent::is_mobile()
CI_User_agent::is_referral()
CI_User_agent::is_robot()
CI_User_agent::languages()
CI_User_agent::mobile()
CI_User_agent::parse()
CI_User_agent::platform()
CI_User_agent::referrer()
CI_User_agent::robot()
CI_User_agent::version()
User Agent Class
XML-RPC and XML-RPC Server
CI_Xmlrpc
CI_Xmlrpc::display_error()
CI_Xmlrpc::display_response()
CI_Xmlrpc::initialize()
CI_Xmlrpc::method()
CI_Xmlrpc::request()
CI_Xmlrpc::send_error_message()
CI_Xmlrpc::send_request()
CI_Xmlrpc::server()
CI_Xmlrpc::timeout()
XML-RPC and XML-RPC Server Classes
Zip Encoding
CI_Zip
CI_Zip::add_data()
CI_Zip::add_dir()
CI_Zip::archive()
CI_Zip::clear_data()
CI_Zip::download()
CI_Zip::get_zip()
CI_Zip::read_dir()
CI_Zip::read_file()
Zip Encoding Class
User guide: Tutorial
Conclusion
Create news items
News section
Static pages
Tutorial
Cookie
Cookie Helper
delete_cookie()
get_cookie()
set_cookie()
Date
Date Helper
date_range()
days_in_month()
gmt_to_local()
human_to_unix()
local_to_gmt()
mdate()
mysql_to_unix()
nice_date()
now()
standard_date()
timespan()
timezones()
timezone_menu()
unix_to_human()
File
delete_files()
File Helper
get_dir_file_info()
get_filenames()
get_file_info()
get_mime_by_extension()
octal_permissions()
read_file()
symbolic_permissions()
write_file()
Directory
Directory Helper
directory_map()
Download
Download Helper
force_download()
User guide: Installation
Downloading CodeIgniter
Installation Instructions
Troubleshooting
Upgrading From a Previous Version
Form
Form Helper
form_button()
form_checkbox()
form_close()
form_dropdown()
form_error()
form_fieldset()
form_fieldset_close()
form_hidden()
form_input()
form_label()
form_multiselect()
form_open()
form_open_multipart()
form_password()
form_prep()
form_radio()
form_reset()
form_submit()
form_textarea()
form_upload()
set_checkbox()
set_radio()
set_select()
set_value()
validation_errors()
Smiley
get_clickable_smileys()
parse_smileys()
Smiley Helper
smiley_js()
Javascript
Javascript Class
Path
Path Helper
set_realpath()
XML
XML Helper
xml_convert()
Index
index