thinkPHP中form表单action的问题

WBOY
Release: 2016-06-23 14:22:48
Original
2365 people have browsed it

thinkphp form action 表单

thinkPHP中form表单的action应该怎么写?我的项目名为reg,html文件名为search.html,对应的php文件为Search.class.php。类为Search ,方法为search()。action="{:U('reg/Search/search')}"这样写对吗?正确的方式是什么

回复讨论(解决方案)

你的PHP文件命名应该是 SearchAction.class.php 才对哦!

找到原因了,谢楼上

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template