public static function load() { $baseDir = Pii::app()->appDir; // $file=scandir($baseDir.'/config'); // print_r($file); // exit; foreach (self::$_configName as $configName => $fileName) { if (file_exists($baseDir . 'config/' . $fileName)) { $tmp = (require_once $baseDir . 'config/' . $fileName); self::$_configs[$configName] = $tmp; } else { throw new PiiException('config file ' . $fileName . ' is not exist!'); } } return new self(); }
<?php /** * supplies info for the roll your own list */ $_featureEnabled = Pii::getParam('dashboard.dreamstrap_fe_google_cloud'); if ($_featureEnabled) { $_body = <<<HTML <p><strong>This feature is coming soon! Stay tuned!</strong></p> HTML; } else { $_body = <<<HTML <p><strong>This feature is coming soon! Stay tuned!</strong></p> HTML; } return array('id' => 'google-cloud', 'title' => 'Google Cloud', 'body' => $_body);
<?php /** * supplies info for the roll your own list */ $_featureEnabled = Pii::getParam('dashboard.dreamstrap_fe_openstack'); if ($_featureEnabled) { $_body = <<<HTML <p><strong>This feature is coming soon! Stay tuned!</strong></p> HTML; } else { $_body = <<<HTML <p><strong>This feature is coming soon! Stay tuned!</strong></p> HTML; } return array('id' => 'openstack', 'title' => 'OpenStack', 'body' => $_body);