Let me summarize what I learned.
method to get the data primary key: $goods _model-GETPK ();
Instantiate a data table two methods new Model (); M () Shortcut method takes only one memory at a time and the first method increases memory storage every
The advantages of JSON do not say, there is a habit, I in the output JSON, like to use sprintf to spell JSON format, the first two days by friends said not standard, must be used Json_encode generated is the standard JSON format, I am of course very
This code seems to be thinkphp inside the/**+----------------------------------------------------------* string interception, support for Chinese and other encodings +------------- ---------------------------------------------* @static * @access
Cgridview displays data in tabular form, Cgridview also supports paging and sorting, Cgridview the most basic usage and ListView type, and also by setting data provider, usually cactivedataprovider. Modify the previous example Yii Framework
Just to move to the blog, the plan is to transfer two of space data but encountered some problems, the packaging of the file is too big to think of PHP can download files remotely
And then I wrote a script!
01
02
About Phpcms v9 Voting module options Sorting listorder setting problem modification, the younger brother mainly modified three files three places.
This method I think I have enough, welcome everyone to shoot bricks.
The main changes are three
Ob_start () Just say the role, do not say how to use, how to use their own to find, online have, today just help a bit vague people clear up. Yesterday saw a friend company's code is similar to the above code, and plainly there is no meaningful code
I haven't written anything about PHP for a long time, so let's talk about PHP kernel-related knowledge.
According to the management, we will prepare the environment before we begin to explain:
Environment Preparation:
1. Linux environment, we use
For the third interface, the returned information is more comprehensive and is provided in JSON format as follows {"Weatherinfo": {//basic information; " City ":" Beijing "," city_en ":" Beijing "," date_y ":" February 16, 2012 "," Date ":" "," Week
Backward PHP crashes because there are too many options, and the empty option is not added to the paging URL. The following code can be placed at the bottom of the views/layouts/main.php file to fix the address of the Cgridview page link.
Cjuiresizable can enable the UI component contained in it to support the zoom function, it encapsulates the JUI resizable plug-in, Cjuiresizable basic use method is as follows: [PHP]
Beginwidget (' zii.widgets.jui.CJuiResizable ', Array (' Options '
Here is an example of a PHP template parsing.
With regular expressions, the{Youku Id_xmtc5odgwota4} goes to the corresponding playback code.
Header (' content-type:text/html; Charset=utf-8 ');
$template = '
{Youku Id_xmtc5odgwota4}
{Youku
Today learned to do the background page, very failure will not show.
PHP: The following code can block PHP attention level error, that is, throw any non-attention errors
[PHP] Error_reporting (e_all&~e_notice);
Error_reporting
1. Modify the kdeditor.php file in the yii extension directory, put the JS object declaration in the outside of the method [HTML] $js =
Id Kindeditor.ready (function (K) {editor_$this->id = K.create (' # $this->id ', $properties _string);}); F 2.
Header Common Directives
The header is divided into three parts:
The first part is the version of the HTTP Protocol (http-version);
The second part is state code (status);
The third part is the reason phrase (reason-phrase).
Fix 404 Pages: Use this
Cjuisliderinput displays a slider that also encapsulates the JUI slider plug-in, which can be used as a user input UI component in a form. The basic usage is as follows: [PHP]
Beginwidget (' Cactiveform ');?>
Errorsummary ($model);?>
Widget ('
Today, a classmate asked me brophp how to set 404, here to share the method
1, prepare a 404-page template, placed under the public root directory, of course, you can define the path.
2, first add such a method in action.class.php:
static public
Strip_runtime_space constants are removed from the tp3.0. So it doesn't work.
Just looked down the source of TP, found that the removal of the code blank and comments have become the default behavior, the developer is not controllable.So only the
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