Fórum
changed functions in 6.1 (php)
Johan de jong, modificado 12 Anos atrás.
changed functions in 6.1 (php)
Junior Member Postagens: 41 Data de Entrada: 06/02/12 Postagens Recentes
Within 6.0.5 one could use the following code in a php file to get userdetails:
But $user = $util->getUser($request->getRequest()); gives an error that the getRequest() is not supported?
import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
import com.liferay.util.bridges.php.PHPServletRequest;
import java.lang.Object;
import com.liferay.portal.theme.ThemeDisplay;
$var1=new ThemeDisplay();
$var2=$var1->getScopeGroupName();
$var3=$var1->getScopeGroupId();
$util = new PortalUtil();
$user = $util->getUser($request->getRequest());
$urlArray=preg_split('///', $util->getCurrentURL($request->getRequest()));
But $user = $util->getUser($request->getRequest()); gives an error that the getRequest() is not supported?