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::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_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_Output::append_output()

append_output($output) Parameters: $output (string) – Additional output data to append Returns: CI_Output instance (method chaining) Return type: CI_Output Appends data onto the output string. $this->output->append_output($data);

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_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_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_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

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::model()

model($model[, $name = ''[, $db_conn = FALSE]]) Parameters: $model (mixed) – Model name or an array containing multiple models $name (string) – Optional object name to assign the model to $db_conn (string) – Optional database configuration group to load Returns: CI_Loader instance (method chaining) Return type: CI_Loader $this->load->model('model_name'); If your model is located in a subdirectory, include the relative path from your models directory. For example, if you hav