那些年,我们看过的各种设计理论法则
skeumorphic and flat(Barcelona)
skeumorphic and flat(Barcelona)
Remove index.php in the URL for Codeigniter:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /selfcontrol/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#Uncomment one of the following rewrite rules.
#Some servers require the ? after index.php, some don't
#RewriteRule ^(.*)$ index.php?/$1 [NC,L,QSA]
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
From: FTP中传输模式:BIN与ASC的差别
.htaccess要用ASCII传。
I was using Codeigniter with Backbone. When I try to call the save() method in the Backbone it sent a POST Request to the server. But it sends data to the server using a Request Payload and not the standard Form Data approach that jQuery, and standard HTML forms submit with.. After a bit study I think there are two easy way to handle this.
On the front end you can enable Backbone.emulateJSON() or on the server side, $requestBody = json_decode(file_get_contents('php://input'),true);.
I heard something like $this->request->body but it never works.
http://www.farinspace.com/codeigniter-htaccess-file/
^ begins the line to match.$ ends the line to match. So, ^folder1$ matches folder1 exactly.. stands for “any non-whitespace character” (example: a, B, 3).* means that the previous character can be matched zero or more times. So, ^uploads.*$ matches uploads2009, uploads2010, etc.^.*$ means “match anything and everything.” This is useful if you don’t know what your users might type for the URL.() designates which portion to preserve for use again in the $1 variable in the second string. This is useful for handling requests for particular files that should be the same in the old and new versions of the URL.内网里用opera上咱们的网站一张图都加载不出来:
Warning
http://hiphotos.baidu.com/baidu/pic/item/***.jpg
A page on the public internet requests data from your private intranet. For security reasons, automatic access is blocked, but you may choose to continue.
Continue
Always continue when data is requested from this server on my private intranet
Generated by Opera.
原来opera还有这一个功能:http://stackoverflow.com/questions/5464599/opera-wont-load-some-javascript-files