Passing variable to view results in empty variable |
OK, I am at my wit's end with this one. I have googled and tried everything I can think of. It is possibly very easy to fix, but I am unable to do so. The problem lies in the family part of the controller. Basically I want to fetch the familyId from the session and find all other members of the family from the database. The query works, but sending the data to the view does not.
I have a controller. Focus on the family-part: Code: <?php A simple view: Code: <?php If I print_r($data) from the controller I get an array: Code: Array ( [0] => Array ( [id] => 1 [email] => [email protected] [password] => $hash [created_at] => [updated_at] => [familyId] => 1 [givenName] => Andy [familyName] => H [userName] => Desde [child] => 0 ) ) But if I pass the exact same variable I get nothing coming out in the view. Can you see what is wrong with my code? |
Messages In This Thread |
Passing variable to view results in empty variable - by Delph1 - 03-06-2023, 12:22 PM
RE: Passing variable to view results in empty variable - by kenjis - 03-06-2023, 05:51 PM
RE: Passing variable to view results in empty variable - by HermyC - 03-06-2023, 10:21 PM
RE: Passing variable to view results in empty variable - by Delph1 - 03-06-2023, 11:45 PM
RE: Passing variable to view results in empty variable - by KeroniMasingolir - 03-22-2023, 12:56 AM
RE: Passing variable to view results in empty variable - by Delph1 - 03-22-2023, 01:14 AM
|