PChart access thinkPHP project problems

Source: Internet
Author: User
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 ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.