CI_Trackback::display_errors()

display_errors([$open = ' '[, $close = ' ']]) Parameters: $open (string) – Open tag $close (string) – Close tag Returns: HTML formatted error messages Return type: string Returns error messages formatted in HTML or an empty string if there are no errors.

CI_Table::set_template()

set_template($template) Parameters: $template (array) – An associative array containing template values Returns: TRUE on success, FALSE on failure Return type: bool Permits you to set your template. You can submit a full or partial template. $template = array( 'table_open' => '<table border="1" cellpadding="2" cellspacing="1" class="mytable">' ); $this->table->set_template($template);

CI_Email::to()

to($to) Parameters: $to (mixed) – Comma-delimited string or an array of e-mail addresses Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address(s) of the recipient(s). Can be a single e-mail, a comma-delimited list or an array: $this->email->to('[email protected]'); $this->email->to('[email protected], [email protected], [email protected]'); $this->email->to( array('[email protected]', '[email protected]', '[email protec

CI_Form_validation::set_rules()

set_rules($field[, $label = ''[, $rules = '']]) Parameters: $field (string) – Field name $label (string) – Field label $rules (mixed) – Validation rules, as a string list separated by a pipe “|”, or as an array or rules Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set validation rules, as described in the tutorial sections above: Setting Validation Rules Saving Sets of Validation Rules to a Config File

is_cli()

is_cli() Returns: TRUE if currently running under CLI, FALSE otherwise Return type: bool Returns TRUE if the application is run through the command line and FALSE if not. Note This function checks both if the PHP_SAPI value is ‘cli’ or if the STDIN constant is defined.

CI_Loader::file()

file($path[, $return = FALSE]) Parameters: $path (string) – File path $return (bool) – Whether to return the loaded file Returns: File contents if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type: mixed This is a generic file loading method. Supply the filepath and name in the first parameter and it will open and read the file. By default the data is sent to your browser, just like a View file, but if you set the second parameter to boolean TRUE it

CI_DB_driver::trans_status()

trans_status() Returns: TRUE if the transaction succeeded, FALSE if it failed Return type: bool Lets you retrieve the transaction status flag to determine if it has failed.

CI_Security::get_random_bytes()

get_random_bytes($length) Parameters: $length (int) – Output length Returns: A binary stream of random bytes or FALSE on failure Return type: string A convenience method for getting proper random bytes via mcrypt_create_iv(), /dev/urandom or openssl_random_pseudo_bytes() (in that order), if one of them is available. Used for generating CSRF and XSS tokens. Note The output is NOT guaranteed to be cryptographically secure, just the best attempt at that.

Downloading CodeIgniter

CodeIgniter v3.1.0 (Current version) CodeIgniter v3.0.6 CodeIgniter v3.0.5 CodeIgniter v3.0.4 CodeIgniter v3.0.3 CodeIgniter v3.0.2 CodeIgniter v3.0.1 CodeIgniter v3.0.0 CodeIgniter v2.2.3 CodeIgniter v2.2.2 CodeIgniter v2.2.1 CodeIgniter v2.2.0 CodeIgniter v2.1.4 CodeIgniter v2.1.3 CodeIgniter v2.1.2 CodeIgniter v2.1.1 CodeIgniter v2.1.0 GitHub Git is a distributed version control system. Public Git access is available at GitHub. Please note that while every effort is made to keep this code

do_hash()

do_hash($str[, $type = 'sha1']) Parameters: $str (string) – Input $type (string) – Algorithm Returns: Hex-formatted hash Return type: string Permits you to create one way hashes suitable for encrypting passwords. Will use SHA1 by default. See hash_algos() for a full list of supported algorithms. Examples: $str = do_hash($str); // SHA1 $str = do_hash($str, 'md5'); // MD5 Note This function was formerly named dohash(), which has been removed in favor of do_hash(). Note This funct