CI_DB_driver::cache_on()

cache_on() Returns: TRUE if caching is on, FALSE if not Return type: bool Enable database results caching.

CI_DB_driver::cache_off()

cache_off() Returns: TRUE if caching is on, FALSE if not Return type: bool Disable database results caching.

CI_DB_driver::cache_delete_all()

cache_delete_all() Returns: TRUE on success, FALSE on failure Return type: bool Delete all cache files.

CI_DB_driver::cache_delete()

cache_delete([$segment_one = ''[, $segment_two = '']]) Parameters: $segment_one (string) – First URI segment $segment_two (string) – Second URI segment Returns: TRUE on success, FALSE on failure Return type: bool Delete the cache files associated with a particular URI.

CI_DB_driver::affected_rows()

affected_rows() Returns: Number of rows affected Return type: int Returns the number of rows changed by the last executed query. Useful for checking how much rows were created, updated or deleted during the last executed query.

CI_DB_driver

class CI_DB_driver initialize() Returns: TRUE on success, FALSE on failure Return type: bool Initialize database settings, establish a connection to the database. db_connect($persistent = TRUE) Parameters: $persistent (bool) – Whether to establish a persistent connection or a regular one Returns: Database connection resource/object or FALSE on failure Return type: mixed Establish a connection with the database. Note The returned value depends on the underlying driver in use.

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_Config::slash_item()

slash_item($item) Parameters: $item (string) – config item name Returns: Config item value with a trailing forward slash or NULL if not found Return type: mixed This method is identical to item(), except it appends a forward slash to the end of the item, if it exists.

CI_Config::site_url()

site_url() Returns: Site URL Return type: string This method retrieves the URL to your site, along with the “index” value you’ve specified in the config file. This method is normally accessed via the corresponding functions in the URL Helper.

CI_Config::set_item()

set_item($item, $value) Parameters: $item (string) – Config item name $value (string) – Config item value Return type: void Sets a config file item to the specified value.