Wiki

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

Cron Jobs in Yii

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

Show captcha after <N> unsuccessfull attempts

Created 3 years ago by zitterHow-tos7 comments – viewed 17,126 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).

Image resize on the fly

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

Nested inline active fields inside Bootstrap horizontal forms

Created about a year ago by Kartik VHow-tos2 comments – viewed 17,045 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.

Activate captcha after unsuccessful login attempts

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

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 4 months ago by skwordenHow-tos6 comments – viewed 16,923 times – ( +12 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

How-To: Create Token Authenticated Web Services

Created about a year ago by hemcHow-tos1 comment – viewed 16,705 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,695 times – ( +5 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

pass variables or content block from view file to layout file

Created 2 years ago by yiqing95How-tos0 comments – viewed 16,474 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.

defaultScope

Created 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 16,465 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().