2016-11-12 53 views

回答

0

您可以設置網站的網址在配置文件中:

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 
];