Use Phpqrcode issues in CI

Source: Internet
Author: User
The next I use Phpqrcode to generate two-dimensional code, directly in the Controllers directory under the file can be generated normally, but the call model in the model call QRCode::p ng () function is not generated, what reason?


Reply to discussion (solution)

How did you write it in the template?

QRCode::p ng () gets the picture data stream

I wrote it directly. Qrcode:png () and then you can't lose the QR code.

What's the reason? Great God, teach me!

So you can tell me how you wrote it, is that so hard?

QRCode::p ng ("http://www.baidu.com"); That's it

In this sentence???

For the test, so it's simple to write.


Public Function test () {
QRCode::p ng ("http://www.baidu.com");
}

You said it yourself. The file can be generated directly under the Controllers directory, but the call model calls QRCode in the model: the:p ng () function does not generate
So you don't see how it's called, How do you find the problem?
Do you think it is QRCode::p ng ("http://www.baidu.com"); Is it wrong?

Call is the calling function called in the file under direct controllers
Public Function test () {
QRCode::p ng ("http://www.baidu.com"); This allows direct output
Modules::load (' Ayment_gateway/payment_gateway)->test (); After the call, you cannot
}

Modules::load (' Ayment_gateway/payment_gateway)->test (); What is the output?

Http://woo.ecweb.kaffalab.com/front_action/payment/test you look at the output, it's not going to generate a QR code.


Did you see that? Have BOM head!

  • 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.