0
我正在創建一個窗口小部件來顯示大多數活動查看器,但也希望通過別名獲取自定義字段。我有以下我.tpl:從「常用成員」窗口小部件創建窗口小部件並希望追加自定義字段中的數據
<ul>
<?php foreach($this->paginator as $mam_user): ?>
<div>
<?php echo $this->htmlLink($mam_user->getHref(), $this->itemPhoto($mam_user, 'thumb.icon'), array('class' => 'popularmembers_thumb')) ?>
<h3>
<?php echo $this->htmlLink($mam_user->getHref(), $mam_user->getTitle()) ?>
</h3>
<?php
// Fetches Fields from database by Alias
$tagline = Engine_Api::_()->fields()->getFieldsValuesByAlias();
echo $this->$mam_user->$tagline['tagline'];
?>
</div>
<?php endforeach; ?>
我控制器文件是相同的「大衆成員」不變的..但事情似乎並不在這裏工作。我想我在這裏做錯了什麼。 任何幫助請; ..;並提前致謝。
我明白..它的工作..甚至想到我曾試圖準確的東西,但是很困惑,現在意識到我正在試圖獲取該領域是空的..非常感謝。 – 2013-03-12 09:52:35