CI_Output

class CI_Output $parse_exec_vars = TRUE; Enables/disables parsing of the {elapsed_time} and {memory_usage} pseudo-variables. CodeIgniter will parse those tokens in your output by default. To disable this, set this property to FALSE in your controller. $this->output->parse_exec_vars = FALSE; set_output($output) Parameters: $output (string) – String to set the output to Returns: CI_Output instance (method chaining) Return type: CI_Output Permits you to manually set the f

CI_Migration::version()

version($target_version) Parameters: $target_version (mixed) – Migration version to process Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Version can be used to roll back changes or step forwards programmatically to specific versions. It works just like current() but ignores $config['migration_version']. $this->migration->version(5);

CI_Migration::latest()

latest() Returns: Current version string on success, FALSE on failure Return type: mixed This works much the same way as current() but instead of looking for the $config['migration_version'] the Migration class will use the very newest migration found in the filesystem.

CI_Migration::find_migrations()

find_migrations() Returns: An array of migration files Return type: array An array of migration filenames are returned that are found in the migration_path property.

CI_Migration::error_string()

error_string() Returns: Error messages Return type: string This returns a string of errors that were detected while performing a migration.

CI_Migration::current()

current() Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Migrates up to the current version (whatever is set for $config['migration_version'] in application/config/migration.php).

CI_Migration

class CI_Migration current() Returns: TRUE if no migrations are found, current version string on success, FALSE on failure Return type: mixed Migrates up to the current version (whatever is set for $config['migration_version'] in application/config/migration.php). error_string() Returns: Error messages Return type: string This returns a string of errors that were detected while performing a migration. find_migrations() Returns: An array of migration files Return type: array An

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

CI_Loader::vars()

vars($vars[, $val = '']) Parameters: $vars (mixed) – An array of variables or a single variable name $val (mixed) – Optional variable value Returns: CI_Loader instance (method chaining) Return type: CI_Loader This method takes an associative array as input and generates variables using the PHP extract() function. This method produces the same result as using the second parameter of the $this->load->view() method above. The reason you might want to use this method independentl

CI_Loader::remove_package_path()

remove_package_path([$path = '']) Parameters: $path (string) – Path to remove Returns: CI_Loader instance (method chaining) Return type: CI_Loader When your controller is finished using resources from an application package, and particularly if you have other application packages you want to work with, you may wish to remove the package path so the Loader no longer looks in that directory for resources. To remove the last path added, simply call the method with no parameters. Or to