Wiki articles

Showing 41-60 of 650 items.

How to get & store Last Login DateTime in database?

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

In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

2 0
4 followers
Viewed: 18 256 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

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

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

2 0
2 followers
Viewed: 12 283 times
Version: 1.1
Category: How-tos

How to display Dependent drop-down value using ajax call with dynamically

Created 4 years ago by Ankit Modi, updated 4 months ago by samdark.

Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.

0 1
6 followers
Viewed: 39 807 times
Version: 1.1
Category: Tutorials

Forcing login for all pages using CBehavior

Created 4 years ago by Rohit Suthar, updated 4 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: 13 367 times
Version: 1.1
Category: Tutorials

Expert's model generation with Gii

Created 4 years ago by le_top, updated 4 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: 12 007 times
Version: 1.1
Category: Tips

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

Created 4 years ago by le_top, updated 4 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: 7 681 times
Version: 1.1
Category: Tips

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 11 229 times
Version: all
Category: Tutorials

How to show a Captcha in CForm?

Created 4 years ago by Rohit Suthar, updated 4 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: 13 516 times
Version: 1.1
Category: How-tos

How to show Image view after upload and delete view image using eajaxupload extension

Created 4 years ago by Ankit Modi, updated 4 months ago by samdark.

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
3 followers
Viewed: 15 990 times
Version: 1.1
Category: How-tos

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

Created 4 years ago by Ankit Modi, updated 4 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: 12 375 times
Version: all
Category: How-tos

How to create the custom Drop-down using CHtml::dropDownList

Created 4 years ago by Ankit Modi, updated 4 months ago by samdark.

Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

0 0
3 followers
Viewed: 21 368 times
Version: 1.1
Category: How-tos

Using updateAll and deleteAll with scopes

Created 4 years ago by le_top, updated 4 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: 37 654 times
Version: 1.1
Category: How-tos

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

Created 4 years ago by Rohit Suthar, updated 4 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.

0 3
5 followers
Viewed: 25 747 times
Version: 1.1
Category: Tutorials

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

Created 4 years ago by Louis Gac, updated 4 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: 20 558 times
Version: 1.1
Category: How-tos

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 4 years ago by Rajith R, updated 4 years ago by Rajith R.

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

3 0
5 followers
Viewed: 23 694 times
Version: 1.1
Category: Tutorials
Tags: newbie, Yii, yiic

Disallowing login for INACTIVE users in Yii

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

In this wiki I will show how to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

1 0
3 followers
Viewed: 11 730 times
Version: 1.1
Category: Tutorials

How to display data from two tables in TbGridView using DataProvider?

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

In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

0 0
5 followers
Viewed: 20 847 times
Version: 1.1
Category: Tutorials

View a related field in CGridView

Created 4 years ago by rafaelt88, updated 3 years ago by rafaelt88.

Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

1 0
3 followers
Viewed: 14 787 times
Version: 1.1
Category: Tips

How to prevent Login from two places?

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

In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.

0 0
5 followers
Viewed: 13 018 times
Version: 1.1
Category: Tutorials
1 0
5 followers
Viewed: 7 196 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing