Wiki articles

Showing 121-140 of 651 items.

Translation from .txt file

Created 9 years ago by Yii3, updated 9 years ago by Yii3.

Translation from .txt file Note:

0 2
4 followers
Viewed: 9 985 times
Version: 1.1
Category: Tutorials

[Updated] How to create & call custom global function in whole application?

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

1 3
5 followers
Viewed: 36 707 times
Version: 1.1
Category: Tutorials

Insert a multirow header in CGridView

Created 10 years ago by Peppe, updated 9 years ago by Peppe.

The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...

4 0
5 followers
Viewed: 27 268 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 9 years ago by darkheir, updated 9 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 17 754 times
Version: 1.1
Category: How-tos

multiple CActiveDataProviders in one CGridView

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Nashi.

There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

4 1
9 followers
Viewed: 32 502 times
Version: 1.1
Category: How-tos

Multiple Database Connection : Select database based on login user id, Dynamic

Created 10 years ago by Rajith R, updated 9 years ago by parthshah.

create a class file under protected\components named RActiveRecord.php

6 0
12 followers
Viewed: 44 378 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by Balu, updated 9 years ago by Rohit Suthar.

login links will be

3 4
6 followers
Viewed: 30 856 times
Version: 1.1
Category: Tutorials

Using updateAll and deleteAll with scopes

Created 9 years ago by le_top, updated 9 years ago by le_top.

Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

2 0
4 followers
Viewed: 58 729 times
Version: 1.1
Category: How-tos

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Rohit Suthar.
2 0
5 followers
Viewed: 41 493 times
Version: 1.1
Category: Tips

using multiple radio button

Created 12 years ago by francis ja, updated 9 years ago by Rohit Suthar.

When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

6 0
13 followers
Viewed: 73 664 times
Version: 1.1
Category: Tips

How to sum (Update) of all input button price value using jquery

Created 9 years ago by Ankit Modi, updated 9 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 20 532 times
Version: all
Category: How-tos

Forcing login for all pages using CBehavior

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.

0 3
5 followers
Viewed: 33 577 times
Version: 1.1
Category: Tutorials

Manage Email Template content from database

Created 9 years ago by Ankit Modi, updated 9 years ago by Ankit Modi.

Hi Friends,

0 1
1 follower
Viewed: 23 712 times
Version: all
Category: Tutorials

Expert's model generation with Gii

Created 9 years ago by le_top, updated 9 years ago by le_top.

Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

1 0
2 followers
Viewed: 16 951 times
Version: 1.1
Category: Tips

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 9 years ago by le_top, updated 9 years ago by le_top.

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 016 times
Version: 1.1
Category: Tips

A very easy way to setup yiic on WAMP server (without extra windows settings)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

Assuming that you have already install the wampserver on your windows.

3 1
4 followers
Viewed: 51 199 times
Version: 1.1
Category: Tutorials

How to show a Captcha in CForm?

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.

0 0
3 followers
Viewed: 18 561 times
Version: 1.1
Category: How-tos

Tabular Input, Validating and Saving related models

Created 10 years ago by Xavier John, updated 9 years ago by hasanavi.

This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

4 0
16 followers
Viewed: 42 832 times
Version: 1.1
Category: Tutorials

Activate captcha after unsuccessful login attempts

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Rohit Suthar.

Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

4 1
15 followers
Viewed: 38 061 times
Version: 1.1
Category: How-tos

Yii 1.1: How To add id or class to CMenu items ?

Created 9 years ago by Louis Gac, updated 9 years ago by Louis Gac.

CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

1 0
1 follower
Viewed: 26 000 times
Version: 1.1
Category: How-tos