<?php include_once '../../base.php'; /* if( !Yike\AccessControl::roleAllow(array(Yike\AccessControl::USER)) ){ //检查权限 header('HTTP/1.1 403 Forbidden'); header("location: /app/user/login.php"); exit; } */ if (!isset($_GET['id'])) { header('HTTP/1.1 404 Not Found'); exit; } $id = intval($_GET['id']); $require = Model\DemandThing::findRequire($id); if (!$require) { //不存在,送出404头,跑到 404 页面 header('HTTP/1.1 404 Not Found'); exit; } $require->addClickCount(); //增加点击量 ?> <!DOCTYPE html > <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>需要 <?php echo $require->demandthing_title; ?> </title> <?php