markdown settings.local.php(Drupal) Posted 2021-05-05
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown settings.local.php(Drupal)相关的知识,希望对你有一定的参考价值。
<?php
// Local development configuration.
if (!defined('PANTHEON_ENVIRONMENT')) {
// Database.
$databases['default']['default'] = array(
'database' => 'LOCAL_DATABASE_NAME_HERE',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'driver' => 'mysql',
'port' => 3306,
'prefix' => '',
);
$conf['file_temporary_path'] = '/tmp';
$conf['theme_debug'] = TRUE;
ini_set('session.gc_maxlifetime', 0);
ini_set('session.cookie_lifetime', 0);
/**
* Disable CSS and JS aggregation.
*/
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
/**
*For Drupal 8:
*/
// $settings['hash_salt'] = 'my_random_hash';
/**
* Set Kint's max levels when using Devel and Kint in Drupal 8:
*/
// require_once DRUPAL_ROOT . '/modules/contrib/devel/kint/kint/Kint.class.php';
// Kint::$maxLevels = 3;
/**
*For Drupal 8 with subfolder install:
*/
// $base_url = 'http://site_folder_name.whatever_domain';
// if (isset($GLOBALS['request']) && '/web/index.php' === $GLOBALS['request']->server->get('SCRIPT_NAME')) {
// $GLOBALS['request']->server->set('SCRIPT_NAME', '/index.php');
// }
// $settings['container_yamls'][] = __DIR__ . '/services.local.yml';
}
Note that something like the following must be included in the settings.php file so that the settings.local.php file is referenced:
```php
#######################################
# Use local settings file if it exists
#######################################
$local_settings = __DIR__ . "/settings.local.php";
if (file_exists($local_settings)) {
include $local_settings;
}
```
以上是关于markdown settings.local.php(Drupal)的主要内容,如果未能解决你的问题,请参考以下文章
转换rst到markdown总结
markdown [Markdown HowTo]作为Markdown语法的秘籍
python markdown干啥用的
markdown前端渲染
如何用markdown生成目录
markdown排版示例