This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * In configuration file | |
| * ... | |
| * 'as AccessBehavior' => [ | |
| * 'class' => 'app\components\AccessBehavior', | |
| * 'allowedRoutes' => [ | |
| * '/', | |
| * ['/user/registration/register'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location / { | |
| # Rewrite rules and other criterias can go here | |
| # Remember to avoid using if() where possible (http://wiki.nginx.org/IfIsEvil) | |
| try_files $uri $uri/ @rewrites; | |
| } | |
| location @rewrites { | |
| # Can put some of your own rewrite rules in here | |
| # for example rewrite ^/~(.*)/(.*)/? /users/$1/$2 last; | |
| rewrite ^/(.*)? /index.cfm/$1 last; |