是把公用模板的commentform.template
<div><label for="commentTopic">{$locale->pr("comment_topic")}</label><input type="text" name="commentTopic" id="commentTopic" value="{$topic}" /></div>
改成
<div><label for="commentTopic">{$locale->pr("comment_topic")}</label><input type="text" name="commentTopic" id="commentTopic" value="Re:{$post->getTopic()" /></div>
但這個方法雖然有成功,但第二次瀏覽該篇文章時
卻會出現
標題<input type="text" name="commentTopic" id="commentTopic" value="Re:
Fatal error: Call to a member function getTopic() on a non-object in D:\xampp\htdocs\blog\tmp\1\%%3F^3F2^3F2BCD9C%%commentform.template.inc on line 16
再來就一直是那個錯誤了?Why?