The examples in this article describe Yii2.0 pre-defined aliases. Share to everyone for your reference, as follows:
In summary, there are 12 default predefined aliases, with path aliases of 11 and URL aliases only @web 1:
@yii represents the
For details, see the copyright information on this site.Method: Unzip the file, add the images file to the root directory of the website, footer.html upload to cover your site template footer.htmlThe default template is:/template/default/common/Find
1. Overview
The Cache-control is used to control the HTTP cache (which may not be partially implemented in http/1.0, only Pragma:no-cache is implemented)
2. Example
Cache-control:cache-directive
The cache-directive can be as follows:
The request is
Today, look at Sina Weibo, found that their picture is with the scroll bar down, the picture with the load, the search from the Internet. found that most of the online, the code, are the same. Do not know, this implementation method, optimization
Reason:
php5.5 later preg_replace no longer supports the E-mode modifier, which can be replaced with the Preg_replace_callback function.
Workaround:
Locate the file Smarty_Compiler.class.php line No. 270:
/* replace special blocks by "{php}"
1. Install Linux and install Git (192.168.1.239)
2. Create a user zph (let this user provide git on server) with the password set to 12345678
# Useradd ZPH# passwd ZPH# su Zph4. Create a remote repository$ git init--bare sample.git5. Under Windows (
Under Project root, add the. htaccess file.
The contents of the file are
RewriteEngineOnOptions FollowSymLinksRewriteCond%{REQUEST_FILENAME} !-fRewriteCond%{REQUEST_FILENAME} !-dRewriteRule . index.html
This is the case with Apache as a server.
Before you know this function, look at another function: __autoload.
First, __autoload
This is an auto-load function, which is triggered when we instantiate an undefined class in PHP5. Look at the following example:
printit.class.php
Demo Address: http://www.aianping.com/about/Inadvertently see a blog, the page is very fresh, so the HTML code down to do a page about us, like to take away, share out:
about.png (681.15 KB, download count: in)
Download attachments
1. Subclasses cannot access parent class private properties and methods
2. Overloading of methods is not supported
data. ""; }} Class Childa extends _parent{}class childb extends _parent{ protected $data = "childb";//overrides the parent class'
example, call the Google interface to implement the QR code.
? php
$data = isset ($_get[' t ')? $_get[' t ']: ' http://www.XXX.com ';
$size = isset ($_get[' size ')? $_get[' size ': ' 150x150 ';
$logo = isset ($_get['
Today to use the PHP curl extension, will be in the php.ini, Extension=php_curl.dll comments removed, after restarting Apache still reported the call to undefined function curl_init () error. Baidu many times, try a lot of methods, also can not
The following classes encapsulate memcache, including adding, reading, emptying, deleting, retrieving server information, caching service pools, and so on for Memcache.
/******************************************* * file
The monkey eats the peach:
Eat half +1 on the first day;
Eat half +1 the next day;
There's one left in 10 days.
How many are there to ask for a
$total=1; $totalar=array(); $totalar[0]=1; for($i=0;$i9;$i++){ $total=2*(1+$total);
functiontest() {static$nm = 1; $nm *= 2; print$nm."\n"; }// 第一次执行,$nm = 2 test(); // 第一次执行,$nm = 4 test(); // 第一次执行,$nm = 8 test();?>
A variable with the static modifier added is not lost even after the function has finished executing, that
The browser instantiates an Ajax object that sends an HTTP request and carries certain parameters to the background. The backend server receives these parameters and filters the passed parameters to make logical judgments. If you need to participate
Many people do not see the WordPress editor, because the available features are really less pathetic. Because often to insert various code in the article, in the previous use of the editor enhanced Plug-in "CK and Syntaxhighlighter" This editor is
After the introduction of the background template, access, in general, in the browser access to Http://localhost:63342/Test/index.php/Admin, you can see the welcome interface, as the framework was introduced, but I do not know why, after 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