form_fieldset()

form_fieldset([$legend_text = ''[, $attributes = array()]]) Parameters: $legend_text (string) – Text to put in the <legend> tag $attributes (array) – Attributes to be set on the <fieldset> tag Returns: An HTML fieldset opening tag Return type: string Lets you generate fieldset/legend fields. Example: echo form_fieldset('Address Information'); echo "<p>fieldset content here</p>\n"; echo form_fieldset_close(); /* Produces: <fieldse

CI_User_agent::accept_lang()

accept_lang([$lang = 'en']) Parameters: $lang (string) – Language key Returns: TRUE if provided language is accepted, FALSE if not Return type: bool Lets you determine if the user agent accepts a particular language. Example: if ($this->agent->accept_lang('en')) { echo 'You accept English!'; } Note This method is not typically very reliable since some browsers do not provide language info, and even among those that do, it is not always accurate.

CI_DB_result::data_seek()

data_seek([$n = 0]) Parameters: $n (int) – Index of the results row to be returned next Returns: TRUE on success, FALSE on failure Return type: bool Moves the internal results row pointer to the desired offset. Usage: see Result Helper Methods.

CI_Form_validation

class CI_Form_validation 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 F

CI_Unit_test::report()

report([$result = array()]) Parameters: $result (array) – Array containing tests results Returns: Test report Return type: string Generates a report about already complete tests.

CI_DB_driver::table_exists()

table_exists($table_name) Parameters: $table_name (string) – The table name Returns: TRUE if that table exists, FALSE if not Return type: bool Determine if a particular table exists.

CI_Table::make_columns()

make_columns([$array = array()[, $col_limit = 0]]) Parameters: $array (array) – An array containing multiple rows’ data $col_limit (int) – Count of columns in the table Returns: An array of HTML table columns Return type: array This method takes a one-dimensional array as input and creates a multi-dimensional array with a depth equal to the number of columns desired. This allows a single array with many elements to be displayed in a table that has a fixed column count. Consider thi

Getting Started With CodeIgniter

Any software application requires some effort to learn. We’ve done our best to minimize the learning curve while making the process as enjoyable as possible. The first step is to install CodeIgniter, then read all the topics in the Introduction section of the Table of Contents. Next, read each of the General Topics pages in order. Each topic builds on the previous one, and includes code examples that you are encouraged to try. Once you understand the basics you’ll be ready to explore the Class

CI_DB_result::result()

result([$type = 'object']) Parameters: $type (string) – Type of requested results - array, object, or class name Returns: Array containing the fetched rows Return type: array A wrapper for the result_array(), result_object() and custom_result_object() methods. Usage: see Result Arrays.

CI_URI::rsegment()

rsegment($n[, $no_result = NULL]) Parameters: $n (int) – Segment index number $no_result (mixed) – What to return if the searched segment is not found Returns: Routed segment value or $no_result value if not found Return type: mixed This method is identical to segment(), except that it lets you retrieve a specific segment from your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.