PChart access thinkPHP project problems after my own research and the old dial, you can achieve the image display effect, then I implant thinkPhp project, the test results are also OK [mainly instantiation class ].
But the problem arises .. I want to put the result in the HTML of the template... I don't know whether I understand the error or what is going on. I am stuck here, and if I can display it normally, how can I display it in the specified position? [the code displays the image through this: $ myPicture-> autoOutput (". /Public/Pchart/examples/pictures/example.drawBarChart.simple.png ");] (should not be the encoding problem, I added the UTF-8 [and this is the picture ]) however, if I use the template in this way, an error will be displayed, that is, the method does not belong to a certain class or model. let's solve it step by step. if you have any experience, please take a look!
Reply to discussion (solution)
I'm here to get a piece of blood. it seems like a garbled code? So tall and superior thigh
Your pChart application outputs an image.
Therefore, you need to use the img tag to load
The specific writing method and verification code are similar
Your pChart application outputs an image.
Therefore, you need to use the img tag to load
The specific writing method and verification code are similar
Now I write the Pchart method in a Total controller,
It is now a question of passing parameters .. How can I pass the transfer to this method, because the data changes at any time .. I only have to:/index. php/Total/Pchart/info ['1']/20/info ['2']/30 .. In this case, the Pchart method then accepts the GET method for transmission ..??? Then accept it in the Pchart method and display it in addPoints? Or other methods ..??
You need to pass the parameter. that's not the case.
Unless the parameter is not controlled by the client
You need to pass the parameter. that's not the case.
Unless the parameter is not controlled by the client
Is the client control .. Well, I will do it like this. thank you, Xu, for writing the test tomorrow ..