Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么打不开后台管理界面 #4

Open
hubinjie opened this issue Oct 19, 2015 · 4 comments
Open

为什么打不开后台管理界面 #4

hubinjie opened this issue Oct 19, 2015 · 4 comments

Comments

@hubinjie
Copy link
Owner

目前程序只在根目录下面进行过测试
http://locahost/ 之类
暂不支持像
http://localhost/aci/之类的URL

@azhai
Copy link

azhai commented Dec 22, 2015

cache_module_menu_all 里面缓存的网址base_url是固定的http://locahost
偷懒直接反序列化,更新后再序列化写回去。在application/cache/下新建一个php文件,将下面的代码放在php文件里运行

<?php
defined('APPPATH') or define('APPPATH', dirname(__DIR__) . '/');
defined('BASEPATH') or define('BASEPATH', dirname(APPPATH) . '/system/');
include_once APPPATH . 'config/config.php';
$new_base_url = $config['base_url'];

$content = file_get_contents('cache_module_menu_all');
$data = unserialize($content);
foreach ($data['data'] as & $row) {
    $row['url'] = str_replace('http://localhost', $new_base_url, $row['url']);
}
$content = serialize($data);
file_put_contents('cache_module_menu_all', $content);

@hubinjie
Copy link
Owner Author

hubinjie commented Jan 4, 2016

好办法,谢谢

@carefree8916
Copy link

我也遇到相同的問題
進入后台 看不到菜單
可以請問 要如何做嗎???

@hubinjie
Copy link
Owner Author

安装说明中最后一条,运行一下缓存文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants