1. directly access a method in the module through a url, which is not safe. You can use the following to restrict $ this-isPost (); to determine whether the method is accessed in post mode. In 313, the constant IS_POST is used for determination.
Note the following when submitting data in the form in ThinkPHP:
1. directly access a method in the module through a url, which is not safe. You can use the following to limit
$ This-> isPost (); // checks whether the method is accessed in post mode. In 3.1.3, the constant IS_POST is used for determination.
Error handling method:
_ 404 ('error prompted ', 'Jump [note that the debugging mode will not jump ]','');
Method halt ();
Query: M ('wish ')-> select ();
Add: M ('wish ')-> data ($ data)-> add ([$ data]);
Delete: [be sure to use the where condition] M ('wish ')-> where ()-> delete ();
Data () instantiation parameter M ('wish ')-> data ($ data)-> add ();
Allocate in template