<table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Header navigation table"><tbody><tr><th align="center" colspan="3">Smarty - the compiling PHPtemplate engine</th> </tr><tr><td valign="bottom" align="left" width="25%"><a accesskey="P" href="api.unregister.object.html">Prev</a></td> <td valign="bottom" align="center" width="50%">Chapter 13. Smarty Class Methods()</td> <td valign="bottom" align="right" width="25%"><a accesskey="N" href="api.testinstall.html">Next</a></td> </tr></tbody></table> # unregisterResource()[注销资源] Name unregisterResource() ― dynamically unregister a resource plugin 动态注销一个资源插件 Description void unregisterResource(string name); Pass in the name of the resource. 传递资源名称。 <table class="EXAMPLE" cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr><td> <div class="EXAMPLE"><a name="AEN31333" id="AEN31333"/> <b><span class="PROGRAMLISTING">Example 13.33. unregisterResource()</span><br/></b><table width="100%" bgcolor="#e0e0e0" border="0"><tbody><tr><td> <pre class="PROGRAMLISTING">&lt;?php$smarty-&gt;unregister_resource('db');?&gt;</pre></td> </tr></tbody></table><p> 参见<a href="api.register.resource.html">registerResource()</a>和模板<a href="template.resources.html">资源</a>章节。</p> </div> </td> </tr></tbody></table> <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Footer navigation table"><tbody><tr><td valign="top" align="left" width="33%"><a accesskey="P" href="api.unregister.object.html">Prev</a></td> <td valign="top" align="center" width="34%"><a accesskey="H" href="index.html">Home</a></td> <td valign="top" align="right" width="33%"><a accesskey="N" href="api.testinstall.html">Next</a></td> </tr><tr><td valign="top" align="left" width="33%">unregisterObject()<br/> 注销对象 </td> <td valign="top" align="center" width="34%"><a accesskey="U" href="api.functions.html">Up</a></td> <td valign="top" align="right" width="33%">testInstall()<br/> 安装测试</td> </tr></tbody></table>