Are you facing the challenge of creating a website created by a programmer (maybe you) and a designer at the same time? You don't know how to make work easier for both of you? I will give you the answer: Use FastTemplate to make your site easier to
I. PHP annotation Method
1. // (single line comment) 2./**/(multi-line comment) 3. # (mostly for Unix SHELL) 2. Embedding Method
You can specify it by yourself. Generally
// Recommended 3. Reference File
Include and require
1.
Two days ago, I worked with my colleagues to develop an inventory management system. I was responsible for writing the page program, and my colleagues were responsible for writing the stored procedure. When writing the program, everything went
-
Thinkphp is a good Php development framework. It helped me develop a physical management system some time ago. Since it was the first time that he was used to develop things, everything was unfamiliar and many things had to go through the
Link [html] 'C _ 06c ', 'onclick' => 'Return art_del_confirm ("/company/msglog/delete/id /'. $ data-> zml_id. '"," Are you sure you want to delete this message? ") ')?> Jq [html]
[Php] $ class) {$ this-> $ var = & load_class ($ class);} // load the Loader component to the super controller, this component is a good helper. // you often use $ this-> load-> xxx () to load something, // This load occurs when the controller is
Associated query. Yii also supports the so-called statistical query (or aggregate query ). It refers to retrieving the aggregated information of associated objects, such as the number of comments for each post and the average grade of each product.
There is a problem: how to replace a specific string in a string. For example, replace abc in the string Abc fdab ertDe fda abc fdd, where abc is case-insensitive and the string after replacement is fdab ertDe fda fdd.
At that time, we immediately
{Template "content", "header"} calls the phpcms \ template \ content \ header file under the root directory
{CHARSET} character set (gbk or UTF-8)
{If isset ($ SEO ['title']) &! Empty ($ SEO ['title'])}{$ SEO ['title']} {/if}{$ SEO ['site _ title']}{
Today, I encountered the problem of using drupal to output a user name, which was output by the theme function of drupal. So I searched for the information and found out the following content:
1. theme ('username', array ('account' => $ log) calls a
Interview and written examination are often indispensable for Job Hunting and recruitment. As a php programmer, more or less will have similar experiences ...... The following are my PHP interview questions collected and sorted out. I hope to help
ThinkPHP provides flexible and convenient data operation methods. It not only implements four basic operations (CURD) for database operations: creation, reading, updating, and deletion, there are also many built-in practical data operation methods
Let me summarize what I learned ~How to get the data primary key: $ goods_model-> getPk ();Two ways to instantiate a data table: new Model (); M () shortcut: the shortcut occupies only one memory, and the first method increases the memory storage
The autoLoad name cannot be the same as other scripts!Do not use comments, such //Embedded PHP variable: '". $ params ['sdate']."'The values in Other HTML must be enclosed in double quotation marks !!!!
Yii: app ()-> clientScript->
Today I learned the curl Extension function. I wrote an httpPost function, which is effective. I want to use it for online updates or download remote resources online.
[Php]Echo httpPost ("http://bbs.125.la/member.php? Mod = logging & action = login
By default,The width of option is determined by the widest element in options, and the width of the select control is also determined.
In Yii, if you need to customize the select control width, you can use htmlOptions to define it as follows:$
1. Variables in PHP do not need to be declared. the variables are identified by $. The naming rules of variables start with a letter or underline, followed by any character or underline. $ PI = 3.14; $ radius = 5; $ cir = $ PI * 2 * $ radius; 2. in
Daemon is a special process running in the background. It is independent of the control terminal and periodically executes a task or waits to process some events. Daemon is a very useful process. Php can also implement the daemon function.
1.
1. Purpose$ CATEGORY is a two-dimensional array mainly used to save the basic configuration information of the current channel or module.
2. How to SetYou can log on to the background to go to the module or channel topic management, and modify any
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