Halogy仪表板不显示图形 [英] Halogy dashboard is not displaying graph
问题描述
我使用建立在Codeigniter上的halogy cms。
我已成功安装。
它在子文件夹中工作,但我有一个问题,因为我看到仪表板统计信息不显示。
我配置了几个月前,仪表板正在显示,但我不能
任何帮助?
这是我修改过的
config / site_config.php
$ config ['uploadsPath'] ='static / uploads';
$ config ['staticPath'] ='/ halogy / static';
在 halogy / config / site_config.php
添加此行
$ config ['appFolder'] ='/ halogy';
其中 halogy
应用程序驻留。
接下来在 helpers / halogy_helper.php中添加一个函数
function addFolder($ string){
$ CI =& get_instance();
$ folder = $ CI-> config-> item('appFolder');
return $ folder。 $ string;
}
接下来搜索 display_image
并添加此行
$ path = addFolder($ path);
之前
$ imageHTML ='< img src ='。$ path。'alt ='。$ alt。'';
接下来转到 views / includes / header.php
并将此代码添加到头部
< script type =text / javascript>
function base_url(){
return'<?php echo base_url();?>';
}
< / script>
下一步到 static / js / jquery.flot.init.js
并替换
base_url()+'admin / stats /'+ days
'admin / stats /'+ days
最后转到第206行并替换此行$ imagePath = $ imageData ['src'];
$ bcode> $ imagesPath = addFolder($ imageData ['src']);
现在图片问题已解决,资讯主页也能正常运作。
I am using halogy cms built on Codeigniter.
i have installed it successfully. its working in the sub folder but i am having a problem because i see dashboard statistics are not displayed.
I configured it couple of months ago and the dashboard was being displayed but i can't remember how i did it.
Any help?
Here is what i have modifiedconfig/site_config.php $config['uploadsPath'] = 'static/uploads'; $config['staticPath'] = '/halogy/static';
解决方案I have made a little fix to this problem. Here is how you can do it.
In
halogy/config/site_config.php
add this line$config['appFolder'] = '/halogy';
where
halogy
is the name of folder me application resides. Next add a function inhelpers/halogy_helper.php
function addFolder($string){ $CI =& get_instance(); $folder = $CI->config->item('appFolder'); return $folder . $string; }
Next search the function
display_image
and add this line$path = addFolder($path);
Before
$imageHTML = '<img src="'.$path.'" alt="'.$alt.'" ';
Next go to
views/includes/header.php
and add this code in head section<script type="text/javascript"> function base_url(){ return '<?php echo base_url();?>'; } </script>
Next fo to
static/js/jquery.flot.init.js
and replace thisbase_url()+'admin/stats/'+days
with this
'admin/stats/'+days
Finally go to line 206 and replace this line
$imagePath = $imageData['src'];
with this
$imagePath = addFolder($imageData['src']);
Now the image problem has been solved and also the dashboard will work properly.
这篇关于Halogy仪表板不显示图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!