Halogy仪表板不显示图形

编程入门 行业动态 更新时间:2024-10-25 04:26:59
本文介绍了Halogy仪表板不显示图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用建立在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'];

code> $ 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 modified

config/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 in helpers/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 this

base_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仪表板不显示图形

本文发布于:2023-07-18 12:55:31,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:仪表板   图形   Halogy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!