フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
William Shackelford
passing the userid to a php portlet?
2009/04/01 17:04
答え

William Shackelford

ランク: New Member

投稿: 18

参加年月日: 2009/02/26

最近の投稿

I am developing a php portlet to extend the content on profile page for members of my liferay site. How do I pass the userid or screenname of the profile page users are on to php portlet from liferay?
Eric Devlin
RE: passing the userid to a php portlet?
2009/04/02 4:22
答え

Eric Devlin

ランク: Regular Member

投稿: 154

参加年月日: 2008/02/19

最近の投稿

Hey,
Add a self posting page which which gets the userid from javascript. Here is a link that might help. Ignore the third step as that is for portletbridge, but the first two should do the trick.
Eric
William Shackelford
RE: passing the userid to a php portlet?
2009/04/06 12:26
答え

William Shackelford

ランク: New Member

投稿: 18

参加年月日: 2009/02/26

最近の投稿

Thanks.. I didn't think about doing it via Javascript.. works great!
Billy Jones
RE: passing the userid to a php portlet?
2010/09/01 2:51
答え

Billy Jones

ランク: New Member

投稿: 10

参加年月日: 2010/08/20

最近の投稿

Hi William,

I'm having the same problem trying to figure out how to obtain user id's is there any chance you can tell me more about how you did it?

thanks a lot!

Billy
Gabriel Leon Leyva
RE: passing the userid to a php portlet?
2011/02/09 7:35
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 241

参加年月日: 2009/06/20

最近の投稿

import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
$util = new PortalUtil();
$user = $util->getUser($request->getRequest());
$UserID = $user->getuserId();
Michael Charles
RE: passing the userid to a php portlet?
2011/04/02 18:35
答え

Michael Charles

ランク: New Member

投稿: 15

参加年月日: 2011/01/20

最近の投稿

Gabriel Leon Leyva:
import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
$util = new PortalUtil();
$user = $util->getUser($request->getRequest());
$UserID = $user->getuserId();



Some have been asking about the "$request" variable. If you are struggling try.
1$request = quercus_servlet_request();
Gabriel Leon Leyva
RE: passing the userid to a php portlet?
2011/05/16 18:22
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 241

参加年月日: 2009/06/20

最近の投稿

thanks Michael

import com.liferay.portal.util.PortalUtil;
import com.liferay.portal.model.User;
$util = new PortalUtil();
$request = quercus_servlet_request();
$user = $util->getUser($request->getRequest());
$UserID = $user->getuserId();
brian schneider
RE: passing the userid to a php portlet?
2013/08/02 11:53
答え

brian schneider

ランク: New Member

投稿: 4

参加年月日: 2013/07/29

最近の投稿

where can one find more information on quercus_servlet_request() or specifics about the request object it returns?
brian schneider
RE: passing the userid to a php portlet?
2013/08/02 12:30
答え

brian schneider

ランク: New Member

投稿: 4

参加年月日: 2013/07/29

最近の投稿

more specifically, how do you access the browser get and post variables in your php portet?