Welcome Guest, Not a member yet? Register   Sign In
Variables are not passing in view from my controller
#4

The array: $data is exploded before passing to the view.  Only the array elements are exposed to the view, which is why the reported error is: "Undefined variable:"


Code:
<?php 
// if($data != ""){echo "Image Uploaded Sucessfuly!";}
if($error != ""){echo $error;}

 ?>


Comment the line as shown above and test again.
CI 3.1 Kubuntu 19.04 Apache 5.x&nbsp; Mysql 5.x PHP 5.x PHP 7.x
Remember: Obfuscation is a bad thing.
Clarity is desirable over Brevity every time.
Reply


Messages In This Thread
RE: Variables are not passing in view from my controller - by twpmarketing - 03-12-2015, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB