CI_Input::get_post()

get_post($index[, $xss_clean = NULL]) Parameters: $index (string) – GET/POST parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: GET/POST value if found, NULL if not Return type: mixed This method works the same way as post_get() only it looks for GET data first. $this->input->get_post(‘some_data’, TRUE); Note This method used to act EXACTLY like post_get(), but it’s behavior has changed in CodeIgniter 3.0.

CI_Cart::remove()

remove($rowid) Parameters: $rowid (int) – ID of the item to remove from the cart Returns: TRUE on success, FALSE on failure Return type: bool Allows you to remove an item from the shopping cart by passing it the $rowid.

local_to_gmt()

local_to_gmt([$time = '']) Parameters: $time (int) – UNIX timestamp Returns: UNIX timestamp Return type: int Takes a UNIX timestamp as input and returns it as GMT. Example: $gmt = local_to_gmt(time());

CI_Trackback::data()

data($item) Parameters: $item (string) – Data key Returns: Data value or empty string if not found Return type: string Returns a single item from the reponse data array.

array_column()

array_column(array $array, $column_key[, $index_key = NULL]) Parameters: $array (array) – Array to fetch results from $column_key (mixed) – Key of the column to return values from $index_key (mixed) – Key to use for the returned values Returns: An array of values representing a single column from the input array Return type: array For more information, please refer to the PHP manual for array_column().

CI_URI::assoc_to_uri()

assoc_to_uri($array) Parameters: $array (array) – Input array of key/value pairs Returns: URI string Return type: string Takes an associative array as input and generates a URI string from it. The array keys will be included in the string. Example: $array = array('product' => 'shoes', 'size' => 'large', 'color' => 'red'); $str = $this->uri->assoc_to_uri($array); // Produces: product/shoes/size/large/color/red

CI_Config::system_url()

system_url() Returns: URL pointing at your CI system/ directory Return type: string This method retrieves the URL to your CodeIgniter system/ directory. Note This method is DEPRECATED because it encourages usage of insecure coding practices. Your system/ directory shouldn’t be publicly accessible.

CI_Output::enable_profiler()

enable_profiler([$val = TRUE]) Parameters: $val (bool) – Whether to enable or disable the Profiler Returns: CI_Output instance (method chaining) Return type: CI_Output Permits you to enable/disable the Profiler, which will display benchmark and other data at the bottom of your pages for debugging and optimization purposes. To enable the profiler place the following line anywhere within your Controller methods: $this->output->enable_profiler(TRUE); When enabled a report will b

form_error()

form_error([$field = ''[, $prefix = ''[, $suffix = '']]]) Parameters: $field (string) – Field name $prefix (string) – Error opening tag $suffix (string) – Error closing tag Returns: HTML-formatted form validation error message(s) Return type: string Returns a validation error message from the Form Validation Library, associated with the specified field name. You can optionally specify opening and closing tag(s) to put around the error message. Example: // Assuming that the 'userna

CI_URI::ruri_to_assoc()

ruri_to_assoc([$n = 3[, $default = array()]]) Parameters: $n (int) – Segment index number $default (array) – Default values Returns: Associative routed URI segments array Return type: array This method is identical to uri_to_assoc(), except that it creates an associative array using the re-routed URI in the event you are using CodeIgniter’s URI Routing feature.