Home >Backend Development >PHP Tutorial >CMS in php implements configuration list page and method of obtaining article publishing time
This article mainly introduces the phpcms configuration list page and obtains the article release time. Friends who need it can refer to it
The specific code is as follows:
<p class="moocConDetail"> {pc:content action="lists" catid="11" order="id DESC" num="10" moreinfo="1"} <ul> {loop $data $key $val} {php list($copyfrom) = explode('|', $val['copyfrom'])} <li> <a href="{$val['url']}" rel="external nofollow" >{$val['title']}</a> <span class="source">{$copyfrom}</span> <span class="acTime">{date('Y-m-d',$val[inputtime])}</span> </li> {/loop} </ul> {/pc} </p>
Calling the first-level column name and the second-level column name:
{$CATEGORYS[$CAT[parentid]][catname]} {$CATEGORYS[$CAT[catid]][catname]}
Related recommendations:
PHP list Page display method_PHP tutorial
vue binding id jumps from list page to details page steps
phpcms configurationList pageExample details
The above is the detailed content of CMS in php implements configuration list page and method of obtaining article publishing time. For more information, please follow other related articles on the PHP Chinese website!