<?php require dirname(__FILE__) . '/boot.php'; YARR::require_lib('active_record/migrations'); $runner = new MigrationsRunner(YARR_DB_PATH . '/migrate'); if (isset($argv) && isset($argv[1]) && is_numeric($argv[1])) { $runner->migrate((int) $argv[1]); } else { $runner->migrate(); }
<?php define('ACTION_CONTROLLER_BASE_PATH', dirname(__FILE__)); require_once ACTION_CONTROLLER_BASE_PATH . '/action_controller_exceptions.php'; require_once ACTION_CONTROLLER_BASE_PATH . '/routing.php'; require_once ACTION_CONTROLLER_BASE_PATH . '/template.php'; if (class_exists('YARR')) { YARR::add_default_config('action_controller', array('controllers_path' => YARR_APP_PATH . '/controllers')); YARR::require_lib('inflector'); } else { require_once 'inflector.php'; } /* * ActionController class * * TODO: Add documentation! * * *** Actions *** * * Actions are public non-static methods defined in the controller class being instantiated (i.e. * the end of the inheritance chain). * * To avoid common keyword collitions (such as new), action methods can take an trailing underscore * (e.g. new_). * * *** Filters *** * * There are two non-exclusive ways of defining filters: *
<?php require dirname(__FILE__) . '/../framework.php'; require YARR_CONFIG_PATH . '/config.php'; require YARR_CONFIG_PATH . '/database.php'; // TODO: clean this up! YARR::require_lib('helpers/assets'); YARR::require_lib('helpers/transition'); YARR::boot($CONFIG);