CI_DB_driver::initialize()

initialize() Returns: TRUE on success, FALSE on failure Return type: bool Initialize database settings, establish a connection to the database.

timezone_menu()

timezone_menu([$default = 'UTC'[, $class = ''[, $name = 'timezones'[, $attributes = '']]]]) Parameters: $default (string) – Timezone $class (string) – Class name $name (string) – Menu name $attributes (mixed) – HTML attributes Returns: HTML drop down menu with time zones Return type: string Generates a pull-down menu of timezones, like this one: (UTC -12:00) Baker/Howland Island(UTC -11:00) Samoa Time Zone, Niue(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti(UT

CI_DB_query_builder::select()

select([$select = '*'[, $escape = NULL]]) Parameters: $select (string) – The SELECT portion of a query $escape (bool) – Whether to escape values and identifiers Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a SELECT clause to a query.

CI_Email::attach()

attach($filename[, $disposition = ''[, $newname = NULL[, $mime = '']]]) Parameters: $filename (string) – File name $disposition (string) – ‘disposition’ of the attachment. Most email clients make their own decision regardless of the MIME specification used here. https://www.iana.org/assignments/cont-disp/cont-disp.xhtml $newname (string) – Custom file name to use in the e-mail $mime (string) – MIME type to use (useful for buffered data) Returns: CI_Email instance (method chaining) R

read_file()

read_file($file) Parameters: $file (string) – File path Returns: File contents or FALSE on failure Return type: string Returns the data contained in the file specified in the path. Example: $string = read_file('./path/to/file.php'); The path can be a relative or full server path. Returns FALSE (boolean) on failure. Note The path is relative to your main site index.php file, NOT your controller or view files. CodeIgniter uses a front controller so paths are always relative to the m

CI_Form_validation::error_array()

error_array() Returns: Array of error messages Return type: array Returns the error messages as an array.

CI_Xmlrpc::display_error()

display_error() Returns: Error message string Return type: string Returns an error message as a string if your request failed for some reason. echo $this->xmlrpc->display_error();

br()

br([$count = 1]) Parameters: $count (int) – Number of times to repeat the tag Returns: HTML line break tag Return type: string Generates line break tags (<br />) based on the number you submit. Example: echo br(3); The above would produce: <br /><br /><br /> Note This function is DEPRECATED. Use the native str_repeat() in combination with <br /> instead.

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.

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