CI_DB_query_builder::set_dbprefix()

set_dbprefix([$prefix = '']) Parameters: $prefix (string) – The new prefix to use Returns: The DB prefix in use Return type: string Sets the database prefix, without having to reconnect.

CodeIgniter at a Glance

CodeIgniter is an Application Framework CodeIgniter is a toolkit for people who build web applications using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task. CodeIgniter is Fre

CI_Loader::model()

model($model[, $name = ''[, $db_conn = FALSE]]) Parameters: $model (mixed) – Model name or an array containing multiple models $name (string) – Optional object name to assign the model to $db_conn (string) – Optional database configuration group to load Returns: CI_Loader instance (method chaining) Return type: CI_Loader $this->load->model('model_name'); If your model is located in a subdirectory, include the relative path from your models directory. For example, if you hav

URI Routing

Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method. The segments in a URI normally follow this pattern: example.com/class/function/id/ In some instances, however, you may want to remap this relationship so that a different class/method can be called instead of the one corresponding to the URL. For example, let’s say you want your URLs to have this prototype: example.com/product/1/ example.com/product/2/ example.com/product/3/ example

CI_Session::all_userdata()

all_userdata() Returns: An array of all userdata Return type: array Returns an array containing all “userdata” items. Note This method is DEPRECATED. Use userdata() with no parameters instead.

CI_DB_driver::compile_binds()

compile_binds($sql, $binds) Parameters: $sql (string) – The SQL statement $binds (array) – An array of binding data Returns: The updated SQL statement Return type: string Compiles an SQL query with the bind values passed for it.

CI_Migration::latest()

latest() Returns: Current version string on success, FALSE on failure Return type: mixed This works much the same way as current() but instead of looking for the $config['migration_version'] the Migration class will use the very newest migration found in the filesystem.

CI_DB_result::free_result()

free_result() Return type: void Frees a result set. Usage: see Result Helper Methods.

Upgrading From a Previous Version

Please read the upgrade notes corresponding to the version you are upgrading from. Upgrading from 3.0.6 to 3.1.0 Upgrading from 3.0.5 to 3.0.6 Upgrading from 3.0.4 to 3.0.5 Upgrading from 3.0.3 to 3.0.4 Upgrading from 3.0.2 to 3.0.3 Upgrading from 3.0.1 to 3.0.2 Upgrading from 3.0.0 to 3.0.1 Upgrading from 2.2.x to 3.0.x Upgrading from 2.2.2 to 2.2.3 Upgrading from 2.2.1 to 2.2.2 Upgrading from 2.2.0 to 2.2.1 Upgrading from 2.1.4 to 2.2.x Upgrading from 2.1.3 to 2.1.4

CI_Input::input_stream()

input_stream([$index = NULL[, $xss_clean = NULL]]) Parameters: $index (mixed) – Key name $xss_clean (bool) – Whether to apply XSS filtering Returns: Input stream array if no parameters supplied, otherwise the specified value if found or NULL if not Return type: mixed This method is identical to get(), post() and cookie(), only it fetches the php://input stream data.