private function _load_configs() { // Get bootstrap configs. $this->load->config('cms', TRUE); $this->data['cms'] = $this->config->item('cms'); // Load configs from file passed in. $configs = CMS\Libraries\Config::load_configs_from_file(); foreach ($configs as $key => $row) { $this->data['cms'][$key] = $row; } // Make sure our tables are built $this->load->library('CMS_Tables'); }
public static function boostrap($vendor = '../') { // Set defines define('ENVIRONMENT', 'development'); define('VENDOR_PATH', $vendor); // Setup paths self::$_root_path = getcwd(); // We set the default CMS prefix because the frameworks will not do this. CMS\Libraries\Config::set('table_base', 'CMS_'); // If we passed in a file we also load that. // A file passed in trumps everything. CMS\Libraries\Config::load_configs_from_file(); return $vendor . '/cloudmanic/cloudmanic-cms/src/start.php'; }