私はこれを別々に行う方法を考え出しました
ユーザー属性を表示します。
<?php
//Create a User object (of the current User)
$u = new User();
//Creat a UserInfo object with the user ID
$ui = UserInfo::getByID($u->getUserID());
//Get the Value of your user Attribute
$value = $ui->getAttribute('name');
//Print it out
echo $value;
?>
表示ページの所有者:
<?php
$ownerID = $cobj->getCollectionUserID();
$uia = UserInfo::getByID($ownerID);
$ownerName = $uia->getUserName();
echo $ownerName
?>
しかし、それらを組み合わせる方法がわからないため、attribute('name');が表示されます。ページ所有者の
助けてくれませんか
ありがとう