Spark,
Thanks so much for the help. It solved the problem. And don't worry,
I wasn't actually using boolean variables as strings, just the actual
variables I am using are long, similar hyperlinks. Maybe "red/blue"
would have been a better choice :)
On Feb 13, 1:01 pm, "DJ Spark" <[EMAIL PROT
Brett, look:
BEGIN
LOOP1 - $user_online = true;
LOOP2 - $user_online = true;
LOOP3 - $user_online = false;
END
SET VARIABLE TO VIEW
$view->user_online = $user_online;
which value will be there in the view ?
Now, the simplest way, is to use the user array itself:
foreach ($comment
Hey all,
I'm trying to create a condition in my controller within a foreach
loop and then use this information in the view.
A quick note, $comments is a proper array, as is $online_now, so it is
not an array issue. The question is where (or if) I can set the
variable $user_online so that it it