Hi,
Can someone tell me how to print out all the values stored in $self. I can print out each one by using the field name-
print $self->{cgi}->{field_name};
but I would like to print out all the key/values stored in each of the following (some I don't know the key name) -
$self->{in} # a GT::CGI object
$self->{cgi} # a hash of current form input
$self->{sql} # a GT::SQL object connected to the database
$self->{glb_cfg} # a hash of global config options
$self->{cfg} # current table options (like view permissions, etc)
$self->{user} # a hash of currently logged in user.
What's the correct code to write to access all the values so I know what is actually available for me to use in my plugin?
Thanks
Simon.
Can someone tell me how to print out all the values stored in $self. I can print out each one by using the field name-
print $self->{cgi}->{field_name};
but I would like to print out all the key/values stored in each of the following (some I don't know the key name) -
$self->{in} # a GT::CGI object
$self->{cgi} # a hash of current form input
$self->{sql} # a GT::SQL object connected to the database
$self->{glb_cfg} # a hash of global config options
$self->{cfg} # current table options (like view permissions, etc)
$self->{user} # a hash of currently logged in user.
What's the correct code to write to access all the values so I know what is actually available for me to use in my plugin?
Thanks
Simon.