Farhan Ghazali Wed Oct 19 23:18:32 -0400 2011

Subject: How can I access tables columns from a Model?

For example:

1. I find a row in a table.
$user = User::find(clean($_SESSION['SESS_USER_ID']));

2. I want to put the column name of the user table from $user in a $_POST array.
???? <-- I don't know how to do it

I tried using $user->attributes but I notice that it is a private property...

What am i doing wrong?


Farhan Ghazali Wed Oct 19 23:18:47 -0400 2011

hello!

Farhan Ghazali Wed Oct 19 23:18:55 -0400 2011

hello???

Farhan Ghazali Wed Oct 19 23:19:26 -0400 2011

echo '1,2,3';
echo 'is anybody home?';

(1-3/3)