Hum... not sure what I could be doing wrong...
Here is the global
sub {
my $user = $_[0];
use lib('/path/to/gtcommunity/private-folder/lib');
my $db = GT::SQL->new('/path/to/gtcommunity/private-folder/defs')->table('comm_users');
my $get_hash = $db->select( { comm_username=>$user } )->fetchrow_hashref || return $GT::SQL::error;
return { prof_city => $get_hash->{prof_city} };
}
I have setup the name for it like z_city, so I am calling it via <%z_city($LinkOwner)%> in link.html and detailed.html page
I am using prof_city in the global, because that is how the city propertiy appears in the GT Community.
About the /path/to/ , yes I have updated it to the actual path on the web site.
Vishal
Vishal
-------------------------------------------------------
Here is the global
sub {
my $user = $_[0];
use lib('/path/to/gtcommunity/private-folder/lib');
my $db = GT::SQL->new('/path/to/gtcommunity/private-folder/defs')->table('comm_users');
my $get_hash = $db->select( { comm_username=>$user } )->fetchrow_hashref || return $GT::SQL::error;
return { prof_city => $get_hash->{prof_city} };
}
I have setup the name for it like z_city, so I am calling it via <%z_city($LinkOwner)%> in link.html and detailed.html page
I am using prof_city in the global, because that is how the city propertiy appears in the GT Community.
About the /path/to/ , yes I have updated it to the actual path on the web site.
Vishal
Vishal
-------------------------------------------------------