问题描述:
安装YonaCMS但安装后的网站出现错误与模板。 Css不加载和网址似乎不工作的权利。我认为必须配置.htaccess或类似的东西。任何人都已经在Xampp上安装了YonaCMS,请大家帮忙。我已经安装YonaCMS上XAMPP(一尔康CMS)通过作曲家</p> <p>上XAMPP错误
答
您可以设置网站的网址在配置文件中:
在app/config/environment/development.php
设置base_path
(如果使用的是生产环境,然后编辑app/config/environment/production.php
)
如:
<?php
return [
//'base_path' => '/',
'base_path' => 'http://localhost/yona-cms/public/',
'database' => [
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'yona-cms',
'charset' => 'utf8',
],
'memcache' => [
'host' => 'localhost',
'port' => 11211,
],
'memcached' => [
'host' => 'localhost',
'port' => 11211,
],
'cache' => 'file', // memcache, memcached
];