Home > Backend Development > PHP Tutorial > thinkphp发布新闻的思路

thinkphp发布新闻的思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:25:31
Original
1317 people have browsed it

<code>后台发布新闻的内容,是不是提交表单的同时要生成一个静态页面呢?还是只用一个静态的页面用GET方法获取不同的值呢?感觉用GET不怎么好。
小白求大神讲解思路,感激不尽!
</code>
Copy after login
Copy after login

回复内容:

<code>后台发布新闻的内容,是不是提交表单的同时要生成一个静态页面呢?还是只用一个静态的页面用GET方法获取不同的值呢?感觉用GET不怎么好。
小白求大神讲解思路,感激不尽!
</code>
Copy after login
Copy after login

你所说的静态应该是地址的伪静态吧

看你的需求

如果需要地址是xxx.com/news/2.html,这种形式,可能是静态,也可以不是,问产品,现在几乎不会有纯静态了

如果你说get不好看,是指?cate=news&id=2这样不好看的话,可以通过重写来达到这种效果,不同的服务器写法不一样,很容易找到。
nginx
apache
还发现个转换重写规则的东东

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template