Foren
php and liferay
Gabriel Leon Leyva, geändert vor 13 Jahren.
php and liferay
Regular Member Beiträge: 243 Beitrittsdatum: 20.06.09 Neueste Beiträge
Is there a way to get user info from liferay to a php base portle?
Like the userid..?
thanks
Like the userid..?
thanks
Gabriel Leon Leyva, geändert vor 13 Jahren.
RE: php and liferay
Regular Member Beiträge: 243 Beitrittsdatum: 20.06.09 Neueste Beiträge
greate !!! found it thanks
import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
$util = new PortalUtil();
$user = $util->getUser($request->getRequest());
$UserID = $user->getuserId();
echo $UserID;
import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
$util = new PortalUtil();
$user = $util->getUser($request->getRequest());
$UserID = $user->getuserId();
echo $UserID;