pChart 接入thinkPHP项目的问题
经过自己的研究加上老徐的点拨,可以实现显示图片的效果了,然后我植入thinkPhp项目,测试结果也OK【主要是实例化类】。
,但是问题来了。。我现在想放在模板的HTML这里 ,结果 。。。不知道是我理解错误还是怎么回事,在这里被卡主了,还有如果可以正常显示,我改如何显示在指定位置【代码是通过这个显示图片的:$myPicture->autoOutput("./Public/Pchart/examples/pictures/example.drawBarChart.simple.png");】(应该不是编码的问题,我加了UTF-8【而且这是图片】)但是我在模板如果这样使用的话就会显示报错,就是该方法不属于某个类、模型,先一步一步解决吧,如果有相关经验的大牛,帮忙看看!
回复讨论(解决方案)
我是来拿一血的,好像是乱码啊?这么高大上等大腿吧
你那个 pChart 应用输出的是图片
因此你需要用 img 标记来加载
具体写法和验证码类似
你那个 pChart 应用输出的是图片
因此你需要用 img 标记来加载
具体写法和验证码类似
现在我写在一个Total控制器里面Pchart方法,如图:
现在是传参的问题了。。我如何把传输传递到这个方法内,因为数据是随时变化的。。难不成我只有在HTML里面:__APP__/Total/Pchart/info['1']/20/info['2']/30。。无限这样,然后再Pchart方法里面接受GET方法接受传输。.???然后再Pchart方法里面接受,显示到addPoints里面啊?还是其他方法啊。。??
你要传参数,那不就是那样
除非参数不是由客户端控制的
你要传参数,那不就是那样
除非参数不是由客户端控制的

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



To run the ThinkPHP project, you need to: install Composer; use Composer to create the project; enter the project directory and execute php bin/console serve; visit http://localhost:8000 to view the welcome page.

Share the simple and easy-to-understand PyCharm project packaging method. With the popularity of Python, more and more developers use PyCharm as the main tool for Python development. PyCharm is a powerful integrated development environment that provides many convenient functions to help us improve development efficiency. One of the important functions is project packaging. This article will introduce how to package projects in PyCharm in a simple and easy-to-understand way, and provide specific code examples. Why package projects? Developed in Python

Fermat's last theorem, about to be conquered by AI? And the most meaningful part of the whole thing is that Fermat’s Last Theorem, which AI is about to solve, is precisely to prove that AI is useless. Once upon a time, mathematics belonged to the realm of pure human intelligence; now, this territory is being deciphered and trampled by advanced algorithms. Image Fermat's Last Theorem is a "notorious" puzzle that has puzzled mathematicians for centuries. It was proven in 1993, and now mathematicians have a big plan: to recreate the proof using computers. They hope that any logical errors in this version of the proof can be checked by a computer. Project address: https://github.com/riccardobrasca/flt

Title: Learn more about PyCharm: An efficient way to delete projects. In recent years, Python, as a powerful and flexible programming language, has been favored by more and more developers. In the development of Python projects, it is crucial to choose an efficient integrated development environment. As a powerful integrated development environment, PyCharm provides Python developers with many convenient functions and tools, including deleting project directories quickly and efficiently. The following will focus on how to use delete in PyCharm

ThinkPHP has multiple versions designed for different PHP versions. Major versions include 3.2, 5.0, 5.1, and 6.0, while minor versions are used to fix bugs and provide new features. The latest stable version is ThinkPHP 6.0.16. When choosing a version, consider the PHP version, feature requirements, and community support. It is recommended to use the latest stable version for best performance and support.

PyCharm is a powerful Python integrated development environment that provides a wealth of development tools and environment configurations, allowing developers to write and debug code more efficiently. In the process of using PyCharm for Python project development, sometimes we need to package the project into an executable EXE file to run on a computer that does not have a Python environment installed. This article will introduce how to use PyCharm to convert a project into an executable EXE file, and give specific code examples. head

Steps to run ThinkPHP Framework locally: Download and unzip ThinkPHP Framework to a local directory. Create a virtual host (optional) pointing to the ThinkPHP root directory. Configure database connection parameters. Start the web server. Initialize the ThinkPHP application. Access the ThinkPHP application URL and run it.

Performance comparison of Laravel and ThinkPHP frameworks: ThinkPHP generally performs better than Laravel, focusing on optimization and caching. Laravel performs well, but for complex applications, ThinkPHP may be a better fit.
