Thinkphp provides an effective method to generate static pages (as described in the tp2.0 manual, not described in the 3.0 manual, but the 3.0 method still exists .) $ This-& gt; buildHtml (...
Thinkphp provides an effective method to generate
After the new version is released, you can also verify it in the controller. you need to specify two variables: the rules specified in $ validate $ auto are the same as those in the model. There is always a problem when we put automatic verification
Many people want to do the effect of Waterfall Stream. here we will tell you how to use it on the official website. first, download the jquery. masonry. min. js plug-in of Waterfall Stream. the URL is http://masonry.desandro.com/index.html.
Many
During PHP learning, we often encounter the word ThinkPHP. Those who have learned PHP or who have been familiar with PHP must be familiar with ThinkPHP. Yes, she is a PHP Framework. Today, the PHPChina training department editor will show you a
It took me 10 hours to solve the problem, tried various methods, and finally inadvertently solved the problem. The feeling is that I cannot describe it in words, I will summarize various solutions on the Internet, hoping to help some people who are
1. the table () function thinkphp provides a table () function. for specific usage, see the following statements: $ list $ Demo-& gt; table (& amp; #39; think_blogblog, think_typetype & amp; #39;)-& gt ;...
1. table () function
A table () function
ThinkPHP has been updated frequently in recent months, reflecting the company's emphasis on this core framework. Therefore, I personally think that the majority of PHP code writers should have confidence in this framework, I upgraded the core
Assume that the home page URL of your project is: Homepage...
Assume that the Homepage URL of your project is www.test.com/other/Form.
If the current module is: Index
If the current operation is: index
Then the home page complete URL:
This problem has plagued me for a long time, and I finally wrote JQUERY to confuse it. I hope it will help people who encounter the same problem. well, the source code is as follows:
This problem has plagued me for a long time, and I finally wrote
To achieve better SEO optimization, we need to hide the index in the URL address. php, because the configuration methods of different server environments are quite different, we can refer to 5.9URL rewriting for the configuration under the apache
Whether the current operation requires verification. tp provides two parameters in the configuration file, one for storing the operation to be verified, and the other for unverified operations, however, the current operation is used to match with
After using TP for a project over the past few days, I suddenly found that the session could not be used. the session value set in one controller could not be called in another controller. I don't know where the problem is. I tried all the methods,
Add, delete, modify, and query operations on CURDAction. class. php & lt ;? Php // test the add, delete, modify, and query operations on the database classCURDActionextendsAction {// index page publ...
Adding, deleting, modifying, and querying
We know that there is a. htaccess file in the thinkphp case, which is configured with URL rewrite rules, such as RewriteEngineonRewriteCond % {REQUEST_FILENAME }! -DRewr...
We know that there is a. htaccess file in the thinkphp case, which is
1. download and install memcache(1)windowinstall memcache.download memcached.exe to d:/memcached/memcached.exe. run cmd and enter d:/m...
1. download and install memcache
(1) install memcache in Windows. download memcached.exe to
In the case blog in thinkphp3.1 framework, you can add tag when adding a diary, but that's all. when deleting a diary, the tag is not deleted, as a result, the think_tagged table and think_tag have accumulated junk data. in order to delete the log,
1. general queries include the where condition in queries. there are at least three forms of EQNEQ! GT & gt; EGT & gt; LT & lt;/div & gt; ELT & lt; LIKElike [NOT] BETWEEN [not] between [not] in is recommended to use arrays...
1. common query
There
After using TP for a project over the past few days, I suddenly found that the session could not be used. the session value set in one controller could not be called in another controller. I don't know where the problem is. I remember that I didn't
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service