Wiki

Sorted by viewsX
Displaying 371-380 of 786 result(s).

HOW TO: Use token based authentication

Created 4 years ago by le_topHow-tos2 comments – viewed 23,457 times – ( +5 / -1 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

How to add a named scope to ActiveRecords with a behavior

Created 8 years ago by MikeTutorials2 comments – viewed 23,405 times – ( +4 / -1 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

Two Login in same form in Yii application , with two tables

Created 4 years ago by BaluTutorials6 comments – viewed 23,373 times – ( +4 / -8 ) – version 1.1
login links will be

Show captcha after <N> unsuccessfull attempts

Created 5 years ago by zitterHow-tos7 comments – viewed 23,334 times – ( +15 / -6 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Functional Testing in Yii using Goutte and PHPUnit

Created 6 years ago by puteraTutorials2 comments – viewed 23,248 times – ( +7 / -1 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

pass variables or content block from view file to layout file

Created 5 years ago by yiqing95How-tos0 comments – viewed 23,168 times – ( +2 / -1 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Multilanguage web site controlling by get request and database allowed languages

Created 6 years ago by Igor IvanovicTutorials2 comments – viewed 22,880 times – ( +6 / -1 ) – version 1.1
First, you have to have create database table for default language and allowed languages.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 4 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 22,700 times – ( +8 / -2 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

Multilanguage and SEO friendly

Created 4 years ago by InterboyHow-tos1 comment – viewed 22,638 times – ( +5 / -1 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

How to hide index.php on Microsoft Windows Server with IIS7

Created 5 years ago by GiulianoHow-tos2 comments – viewed 22,527 times – ( +10 / -1 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.