Create image from png |
I have this function in my model:
PHP Code: function createBanner($bg){ But I can't display this image... I checked 10+ times name of the banner and all. I deleted cache too .. Any idea ? If I use controller against model , works... Any idea why ?
You might want to put more error checking into your method. I can't tell, from your post, what exactly is failing.
The PHP manual shows one way to do this: http://php.net/manual/en/function.imagec...rompng.php
CI 3.1 Kubuntu 19.04 Apache 5.x Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing. Clarity is desirable over Brevity every time.
Try putting error_reporting(-1); ini_set('display_errors', true); before calling your function.
I think the Php function is case sensitive. |
Welcome Guest, Not a member yet? Register Sign In |