Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 141-150 of 342 result(s).

Checking for "expired" sessions/logins on the client side

Created 2 years ago by le_topHow-tos0 comments – viewed 17,573 times – ( +6 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Cron Jobs in Yii

Created 2 years ago by aarondfrancisHow-tos1 comment – viewed 17,448 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Nested inline active fields inside Bootstrap horizontal forms

Created about a year ago by Kartik VHow-tos2 comments – viewed 17,227 times – ( +41 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Image resize on the fly

Created 2 years ago by TpoxaHow-tos4 comments – viewed 17,174 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

Show captcha after <N> unsuccessfull attempts

Created 3 years ago by zitterHow-tos7 comments – viewed 17,167 times – ( +15 / -4 ) – 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).

Activate captcha after unsuccessful login attempts

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos22 comments – viewed 17,104 times – ( +13 / -1 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

How-To: Create Token Authenticated Web Services

Created about a year ago by hemcHow-tos1 comment – viewed 16,776 times – ( +8 ) – version 1.1
This article is about implementing authentication to Yii based web services.

Multilanguage and SEO friendly

Created about a year ago by InterboyHow-tos1 comment – viewed 16,756 times – ( +5 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

defaultScope

Created 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 16,520 times – ( +5 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

pass variables or content block from view file to layout file

Created 2 years ago by yiqing95How-tos0 comments – viewed 16,512 times – ( +2 ) – 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.