Unable to access value from controller to view.. |
Hi,
I am getting an error while accessing data from controller to view. The $data variable 'ddlcountry' is inaccessible in my view. following is the error code iam getting. I am new to codeigniter. please suggest the possible error cause. Code: A PHP Error was encountered
I doubt this will enlighten you in any way, but that error is telling you that you have referenced a variable called ddlcountry on line 59 of your register.php view that has not been defined.
I am sure that has been no help at all :-) Best wishes, Paul.
(08-13-2015, 06:25 AM)[email protected] Wrote: To help solve your problem, please supply the following:
If your controller has this:
PHP Code: $data['dllcountry'] = 'Some value'; In your view: PHP Code: <?php echo $dllcountry;?> |
Welcome Guest, Not a member yet? Register Sign In |