CI_Encrypt::encode_from_legacy()

encode_from_legacy($string[, $legacy_mode = MCRYPT_MODE_ECB[, $key = '']]) Parameters: $string (string) – String to encrypt $legacy_mode (int) – Valid PHP MCrypt cipher constant $key (string) – Encryption key Returns: Newly encrypted string Return type: string Enables you to re-encode data that was originally encrypted with CodeIgniter 1.x to be compatible with the Encrypt library in CodeIgniter 2.x. It is only necessary to use this method if you have encrypted data stored permane

get_instance()

get_instance() Returns: Reference to your controller’s instance Return type: CI_Controller

CI_DB_query_builder::update_batch()

update_batch($table[, $set = NULL[, $value = NULL[, $batch_size = 100]]]) Parameters: $table (string) – Table name $set (array) – Field name, or an associative array of field/value pairs $value (string) – Field value, if $set is a single field $batch_size (int) – Count of conditions to group in a single query Returns: Number of rows updated or FALSE on failure Return type: mixed Compiles and executes batch UPDATE statements. Note When more than $batch_size field/value pairs are

CI_User_agent::is_referral()

is_referral() Returns: TRUE if the user agent is a referral, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent was referred from another site.

CI_Image_lib::resize()

resize() Returns: TRUE on success, FALSE on failure Return type: bool The image resizing method lets you resize the original image, create a copy (with or without resizing), or create a thumbnail image. For practical purposes there is no difference between creating a copy and creating a thumbnail except a thumb will have the thumbnail marker as part of the name (i.e. mypic_thumb.jpg). All preferences listed in the Preferences table are available for this method except these three: rotation

CI_DB_query_builder::start_cache()

start_cache() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Starts the Query Builder cache.

Troubleshooting

If you find that no matter what you put in your URL only your default page is loading, it might be that your server does not support the REQUEST_URI variable needed to serve search-engine friendly URLs. As a first step, open your application/config/config.php file and look for the URI Protocol information. It will recommend that you try a couple alternate settings. If it still doesn’t work after you’ve tried this you’ll need to force CodeIgniter to add a question mark to your URLs. To do this o

ascii_to_entities()

ascii_to_entities($str) Parameters: $str (string) – Input string Returns: A string with ASCII values converted to entities Return type: string Converts ASCII values to character entities, including high ASCII and MS Word characters that can cause problems when used in a web page, so that they can be shown consistently regardless of browser settings or stored reliably in a database. There is some dependence on your server’s supported character sets, so it may not be 100% reliable in

CI_Parser::parse()

parse($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string Parses a template from the provided path and variables.

CI_Parser

class CI_Parser parse($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only return the parsed template Returns: Parsed template string Return type: string Parses a template from the provided path and variables. parse_string($template, $data[, $return = FALSE]) Parameters: $template (string) – Path to view file $data (array) – Variable data $return (bool) – Whether to only re