PHP code example of ice-php / config
1. Go to this page and download the library: Download ice-php/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ice-php / config example snippets
/**
* 框架核心配置文件
*/
return [
//数据库连接的过期时间,秒
'database_timeout'=>30,
// 默认的模块
'default_module' => '',
// 默认的控制器
'default_controller' => 'home',
// 默认的动作
'default_action' => 'index',
// 默认的URL表现模式: '传统模式'/'路径模式'
'url_mode' => '传统模式'
];