redirect()

redirect($uri = '', $method = 'auto', $code = NULL) Parameters: $uri (string) – URI string $method (string) – Redirect method (‘auto’, ‘location’ or ‘refresh’) $code (string) – HTTP Response code (usually 302 or 303) Return type: void Does a “header redirect” to the URI specified. If you specify the full site URL that link will be built, but for local links simply providing the URI segments to the controller you want to direct to will create the link. The function will build the URL

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

CI_Email::print_debugger()

print_debugger([$include = array('headers', 'subject', 'body')]) Parameters: $include (array) – Which parts of the message to print out Returns: Formatted debug data Return type: string Returns a string containing any server messages, the email headers, and the email messsage. Useful for debugging. You can optionally specify which parts of the message should be printed. Valid options are: headers, subject, body. Example: // You need to pass FALSE while sending in order for the email

CI_Email::send()

send([$auto_clear = TRUE]) Parameters: $auto_clear (bool) – Whether to clear message data automatically Returns: TRUE on success, FALSE on failure Return type: bool The e-mail sending method. Returns boolean TRUE or FALSE based on success or failure, enabling it to be used conditionally: if ( ! $this->email->send()) { // Generate error } This method will automatically clear all parameters if the request was successful. To stop this behaviour pass FALSE: if ($this->

CI_Email::to()

to($to) Parameters: $to (mixed) – Comma-delimited string or an array of e-mail addresses Returns: CI_Email instance (method chaining) Return type: CI_Email Sets the email address(s) of the recipient(s). Can be a single e-mail, a comma-delimited list or an array: $this->email->to('[email protected]'); $this->email->to('[email protected], [email protected], [email protected]'); $this->email->to( array('[email protected]', '[email protected]', '[email protec

CI_Security::entity_decode()

entity_decode($str[, $charset = NULL]) Parameters: $str (string) – Input string $charset (string) – Character set of the input string Returns: Entity-decoded string Return type: string This method acts a lot like PHP’s own native html_entity_decode() function in ENT_COMPAT mode, only it tries to detect HTML entities that don’t end in a semicolon because some browsers allow that. If the $charset parameter is left empty, then your configured $config['charset'] value will be used.

CI_Form_validation::set_data()

set_data($data) Parameters: $data (array) – Array of data validate Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set an array for validation, instead of using the default $_POST array.

CI_Input::request_headers()

request_headers([$xss_clean = FALSE]) Parameters: $xss_clean (bool) – Whether to apply XSS filtering Returns: An array of HTTP request headers Return type: array Returns an array of HTTP request headers. Useful if running in a non-Apache environment where apache_request_headers() will not be supported. $headers = $this->input->request_headers();

form_fieldset_close()

form_fieldset_close([$extra = '']) Parameters: $extra (string) – Anything to append after the closing tag, as is Returns: An HTML fieldset closing tag Return type: string Produces a closing </fieldset> tag. The only advantage to using this function is it permits you to pass data to it which will be added below the tag. For example $string = '</div></div>'; echo form_fieldset_close($string); // Would produce: </fieldset></div></div>

mysql_to_unix()

mysql_to_unix([$time = '']) Parameters: $time (string) – MySQL timestamp Returns: UNIX timestamp Return type: int Takes a MySQL Timestamp as input and returns it as a UNIX timestamp. Example: $unix = mysql_to_unix('20061124092345');