/** * 测试使用 */ function test() { header("Content-type: text/html; charset=utf-8"); $CatsLogic = new \Common\Logic\CatsLogic(); $res = $CatsLogic->getPostsByCatWithChildren(2, 10); dump($res); }
?> </head> <body> <?php echo hook('userHeader', ""); ?> <?php echo W('Widget/menuHead'); ?> <?php $CatsLogic = new Common\Logic\CatsLogic(); $cat71 = $CatsLogic->getPostsByCat(get_theme_opinion("id1"), 10, 0, false); $cat73 = $CatsLogic->getPostsByCat(get_theme_opinion("id2"), 10, 0, false); $cat13 = $CatsLogic->getPostsByCat(get_theme_opinion("id3"), 10, 0, false); ?> <section class="k1120"> <div class="title"> <span>品牌故事 <br> <b>发布于:2015-10-01 <script src="css/products/style.css" type="text/javascript" language="javascript"></script> </b> </span> </div> <div class="viewMain">