form_reset()

form_reset([$data = ''[, $value = ''[, $extra = '']]]) Parameters: $data (string) – Button name $value (string) – Button value $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML input reset button tag Return type: string Lets you generate a standard reset button. Use is identical to form_submit().

CI_Loader::view()

view($view[, $vars = array()[, return = FALSE]]) Parameters: $view (string) – View name $vars (array) – An associative array of variables $return (bool) – Whether to return the loaded view Returns: View content string if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type: mixed This method is used to load your View files. If you haven’t read the Views section of the user guide it is recommended that you do since it shows you how this method is typic

encode_php_tags()

encode_php_tags($str) Parameters: $str (string) – Input string Returns: Safely formatted string Return type: string This is a security function that converts PHP tags to entities. Note xss_clean() does this automatically, if you use it. Example: $string = encode_php_tags($string);

CI_DB_driver::version()

version() Returns: The version of the database being used Return type: string Database version number.

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_DB_query_builder::insert()

insert([$table = ''[, $set = NULL[, $escape = NULL]]]) Parameters: $table (string) – Table name $set (array) – An associative array of field/value pairs $escape (bool) – Whether to escape values and identifiers Returns: TRUE on success, FALSE on failure Return type: bool Compiles and executes an INSERT statement.

CI_DB_utility::list_databases()

list_databases() Returns: Array of database names found Return type: array Retrieve a list of all the database names.

CI_DB_query_builder::or_not_group_start()

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

Creating Libraries

When we use the term “Libraries” we are normally referring to the classes that are located in the libraries directory and described in the Class Reference of this user guide. In this case, however, we will instead describe how you can create your own libraries within your application/libraries directory in order to maintain separation between your local resources and the global framework resources. As an added bonus, CodeIgniter permits your libraries to extend native classes if you simply need