Exception message: Smarty error: unable to read resource: "Hemingway-beta/postandcomments.template"
Error code: 512
-- Backtrace --
/home/bbs/blog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/bbs/blog/class/template/smarty/Smarty.class.php(1604): template.trigger_error
/home/bbs/blog/class/template/smarty/Smarty.class.php(1433): template._fetch_resource_info
/home/bbs/blog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/bbs/blog/class/template/template.class.php(120): smarty.fetch
/home/bbs/blog/class/view/smartyview.class.php(190): template.fetch
/home/bbs/blog/class/view/blogview.class.php(224): smartyview.render
/home/bbs/blog/class/view/viewarticleview.class.php(73): blogview.render
/home/bbs/blog/class/controller/controller.class.php(325): viewarticleview.render
/home/bbs/blog/index.php(44): blogcontroller.process
我仔细看了很久postandcomments.template,也没有找到问题所在(下面给出postandcomments.template),希望各位达人能够帮帮忙,谢谢^_^
{assign var="postPageTitle" value=$post->getTopic()}
{assign var="postPageTitle" value=" | $postPageTitle"}
{include file="$blogtemplate/header.template"}
{assign var="postDate" value=$post->getDateObject()}
{assign var="postOwner" value=$post->getUserInfo()}
<div id="primary" class="single-post">
<div class="inside">
<div class="primary">
<h1>{$post->getTopic()}</h1>
{$post->getText()}
</div>
<hr class="hide" />
<div class="secondary">
<h2>About this entry</h2>
<div class="featured">
<p>You’re currently reading “{$post->getTopic()},” an entry on {$blog->getBlog()}</p>
<dl>
<dt>Published:</dt>
<dd>{$locale->formatDate($postDate, "%m.%d.%y / %H:%M")}</dd>
</dl>
<dl>
<dt>{$locale->tr("categories")|capitalize}:</dt>
{foreach name=categories from=$post->getCategories() item=postcategory}
<dd><a href="{$url->categoryLink($postcategory)}"title="View all posts in {$postcategory->getName()}" rel="category tag">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}</dd>
{/foreach}
</dl>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!-- [END] #primary -->
<hr class="hide" />
<div id="secondary">
<div class="inside">
<div class="comment-head">
<h2>{$post->getTotalComments()} {$locale->tr("comments")}</h2>
<span class="details"><a href="#comment-form">Jump to comment form</a> | <a href='
http://localhost/wordpress/?feed=rss2&p=5'>comments rss</a> <a href="#what-is-comment-rss" class="help">[?]</a> | <a href="
http://crazylib.twbbs.org/wordpress/wp-trackback.php?p=5">trackback uri</a> <a href="#what-is-trackback" class="help">[?]</a></span>
</div>
<!-- You can start editing here. -->
<ol id="comments">
{foreach from=$post->getComments() item=comment}
<li id="{$comment->getId()}">
<cite>
<span class="author">
{if $comment->getUserUrl() != ""}
<a href="{$comment->getUserUrl()}"}>{$comment->getUsername()}</a>
{else}
{$comment->getUsername()}
{/if}
</span>
{assign var=commentDate value=$comment->getDateObject()}
<span class="date">{$locale->formatDate($commentDate, "%m.%d.%y / %H:%M")}</span>
</cite>
<div class="content">
{$comment->getText()}
</div>
<div class="clear"></div>
</li>
{/foreach}
</ol>
{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
{include file="$blogtemplate/commentform.template"}
{/if}
</div>
</div>
<hr class="hide" />
<div id="ancillary">
{include file="$blogtemplate/panel.template"}
</div>
<!-- [END] #ancillary -->
{include file="$blogtemplate/footer.template"}