Wiki

Sorted by commentsX
Displaying 151-160 of 774 result(s).

Show captcha after <N> unsuccessfull attempts

Created 4 years ago by zitterHow-tos7 comments – viewed 19,637 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).

How To Customize CMenu Output

Created 5 years ago by AngeloTutorials7 comments – viewed 60,431 times – ( +10 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Additional form data with XUpload

Created 3 years ago by AsgarothHow-tos7 comments – viewed 34,521 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

A simple go back button widget

Created 3 years ago by CTalaHow-tos7 comments – viewed 21,379 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 5 years ago by a110yTips7 comments – viewed 17,094 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Using cache in CActiveDataProvider

Created 4 years ago by StammTips7 comments – viewed 19,475 times – ( +21 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 3 years ago by Charles R. Portwood IITutorials7 comments – viewed 175,982 times – ( +10 / -10 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

How to upload a file using a model

Created 7 years ago by qiangTutorials6 comments – viewed 412,741 times – ( +86 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

Pjax on ActiveForm and GridView - Yii2

Created about a year ago by SreenadhHow-tos6 comments – viewed 53,885 times – ( +10 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 3 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 22,268 times – ( +5 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...