本文整理汇总了PHP中core\Config::Write方法的典型用法代码示例。如果您正苦于以下问题:PHP Config::Write方法的具体用法?PHP Config::Write怎么用?PHP Config::Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core\Config
的用法示例。
在下文中一共展示了Config::Write方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getUrl
private function getUrl()
{
$url = isset($_GET["url"]) ? $_GET["url"] : "";
unset($_GET["url"]);
$url = explode("/", trim($url, "/"), 3);
if (count($url) > 0) {
$url[0] = str_replace(" ", "", ucwords($url[0]));
Config::Write("control", ($url[0] != "" ? $url[0] : "Index") . "Control");
Config::Write("function", isset($url[1]) ? str_replace(" ", "", $url[1]) : "index");
Config::Write("parametros", isset($url[2]) ? $url[2] : "");
}
}
示例2: array
<?php
use Core\Config;
Config::Write("CACHE", false);
Config::Write("BD_HOST", "localhost");
Config::Write("BD_NAME", "erp");
Config::Write("BD_USER", "root");
Config::Write("BD_PASS", "bm9ybWFu");
Config::Write("BD_DRIVE", "mysql");
Config::Write('control', "indexControl");
Config::Write('function', "index");
Config::Write('parametros', '');
/***** Selección de plantillas *****/
Config::Write("FPLANTILLA", "boot");
Config::Write("Admin", "admin");
Config::Write("Page", array("panel" => "cliente"));
Config::Write("IMG", array("images", "banners"));
Config::Write("SESSION", "MANAGER");
Config::Write("Formatos", array("image/png", "image/pjpeg", "image/jpg", "image/jpeg", "image/gif"));
Config::Write("SizeImage", array("Logo" => 2));
Config::Write("DimImage", array("Logo" => array(250, 250)));
Config::Write("SALT", "secret");