CI_URI::uri_string()

uri_string() Returns: URI string Return type: string Returns a string with the complete URI. For example, if this is your full URL: http://example.com/index.php/news/local/345 The method would return this: news/local/345

CI_Email::reply_to()

reply_to($replyto[, $name = '']) Parameters: $replyto (string) – E-mail address for replies $name (string) – Display name for the reply-to e-mail address Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the reply-to address. If the information is not provided the information in the :meth:from method is used. Example: $this->email->reply_to('[email protected]', 'Your Name');

News section

In the last section, we went over some basic concepts of the framework by writing a class that includes static pages. We cleaned up the URI by adding custom routing rules. Now it’s time to introduce dynamic content and start using a database. Setting up your model Instead of writing database operations right in the controller, queries should be placed in a model, so they can easily be reused later. Models are the place where you retrieve, insert, and update information in your database or other

CI_Security::get_csrf_hash()

get_csrf_hash() Returns: CSRF hash Return type: string Returns the CSRF hash value. Useful in combination with get_csrf_token_name() for manually building forms or sending valid AJAX POST requests.

CI_DB_query_builder::not_group_start()

not_group_start() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Starts a group expression, using AND NOTs for the conditions inside it.

CI_DB_driver::trans_start()

trans_start([$test_mode = FALSE]) Parameters: $test_mode (bool) – Test mode flag Returns: TRUE on success, FALSE on failure Return type: bool Start a transaction.

CI_DB_query_builder::replace()

replace([$table = ''[, $set = NULL]]) Parameters: $table (string) – Table name $set (array) – An associative array of field/value pairs Returns: TRUE on success, FALSE on failure Return type: bool Compiles and executes a REPLACE statement.

Javascript Class

CodeIgniter provides a library to help you with certain common functions that you may want to use with Javascript. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it. Important This library is DEPRECATED and should not be used. It has always been with an ‘experimental’ status and is now no longer supported. Currently only kept for backward

CI_DB_driver::list_tables()

list_tables([$constrain_by_prefix = FALSE]) Parameters: $constrain_by_prefix (bool) – TRUE to match table names by the configured dbprefix Returns: Array of table names or FALSE on failure Return type: array Gets a list of the tables in the current database.

meta()

meta([$name = ''[, $content = ''[, $type = 'name'[, $newline = "n"]]]]) Parameters: $name (string) ? Meta name $content (string) ? Meta content $type (string) ? Meta type $newline (string) ? Newline character Returns: HTML meta tag Return type: string Helps you generate meta tags. You can pass strings to the function, or simple arrays, or multidimensional ones. Examples: echo meta('description', 'My Great site'); // Generates: <meta name="description" content="My Great Site"