在 Zend MVC 上打开 Flash Chart 错误
我最近下载了 Open Flash Chart 源代码,并将其集成到我的 Zend MVC 中。因为我使用自动加载器 我已重命名我的文件并注释了“require_once”源行。
但是,当我尝试加载图表时,
<script type="text/javascript">
swfobject.embedSWF(
"<?php echo $this->baseUrl() ?>/swf/open-flash-chart.swf",
"my_chart", "550", "200",
"9.0.0",
"<?php echo $this->baseUrl() ?>/swf/expressInstall.swf",
{"data-file":"<?php echo $this->baseUrl()?>/reportexpense/piechart/"}
);
</script>
它会加载 "/data-files/y-axis-auto-steps.txt"
,但我不明白为什么。
我的控制器返回我期望呈现的 JSON 字符串。 我缺少什么?
I recently downloaded the Open Flash Chart source code and I have intergrated it into my Zend MVC.Since I use the autoloader
I have renamed my files and commented the "require_once" source lines.
However when I try to load my chart
<script type="text/javascript">
swfobject.embedSWF(
"<?php echo $this->baseUrl() ?>/swf/open-flash-chart.swf",
"my_chart", "550", "200",
"9.0.0",
"<?php echo $this->baseUrl() ?>/swf/expressInstall.swf",
{"data-file":"<?php echo $this->baseUrl()?>/reportexpense/piechart/"}
);
</script>
it loads the "/data-files/y-axis-auto-steps.txt"
instead and I cant figure out why.
My controller returns the JSON string which I expect to be rendered.
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了帮助那些可能遇到同样问题的人。
我调整了我的代码以使其
完美运行。
Just to help out those who might come across the same problem.
I adjusted my code to read
It worked perfectly.