查了两个贴子:
http://forum.lifetype.org.tw/index.php?topic=445.0http://forum.lifetype.org.tw/index.php?topic=930.0也知道了 {$category->getDescription()}
但是当我加在
post.template 后
<!-- {$url->postTrackbackLink($post)} -->
{assign var="postDate" value=$post->getDateObject()}
{assign var="postOwner" value=$post->getUserInfo()}
<!-- post start -->
<div class="post-title">
<em>
[{foreach name=categories from=$post->getCategories() item=postcategory}
<a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>
{if !$smarty.foreach.categories.last}, {/if}
{/foreach}]
</em>
{$locale->formatDate($postDate,"%d %B, %Y %H:%M")}</br>
{$category->getDescription()} </div>
<p class="post-info"><a href="{$url->postPermalink($post)}" rel="bookmark" title="Permanent Link: {$post->getTopic()}"> {$post->getTopic()} </a></p>
<div class="post-content">{$post->getText()}</div>
<div class="post-footer"><span class='link-comment'>[<a href="{$url->postPermalink($post)}"> ({$post->getTotalComments()}) {$locale->tr("comment on this")} </a>]</span> | [<a href="{$url->postTrackbackStatsLink($post)}"> ({$post->getNumTrackbacks()}) {$locale->tr("trackbacks")} </a>] | [<a href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a>] | [ {$post->getNumReads()} Readers ]</div>
得到这个错误i信息:
Fatal error: Call to a member function on a non-object in /usr/local/psa/home/vhosts/lastminder.com/httpdocs/plog/tmp/1/%%-14^%%-1489170800^post.template.php on line 28
各位高手有没有什么想法请指点一二!!!
我用的是网上的hosting comapny到现在没有什么安装错误,plog 1.0 上个星期下载的!