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!