Wiki articles in category How-tos

Showing 21-40 of 292 items.

Yii configuration: Dynamic & User dependent

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

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1 follower
Viewed: 13 246 times
Version: 1.1
Category: How-tos

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

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

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

2 0
3 followers
Viewed: 22 515 times
Version: 1.1
Category: How-tos

Check users online, user last activity, user last ip

Created 10 years ago by frazelli, updated 10 years ago by frazelli.

Stores session data in database and transfer data when session is destroy. Uses for check users online, user's last activity and last ip.

3 0
7 followers
Viewed: 22 634 times
Version: 1.1
Category: How-tos

Google style sign out of all other sessions

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

In this wiki I will show how could logout from all other sessions or all other places.

0 0
5 followers
Viewed: 26 633 times
Version: 1.1
Category: How-tos

How To : Create Forgot Password in Yii (Sending Email to Reset Password)

Created 10 years ago by ruderbytes, updated 8 years ago by ruderbytes.

Assalamualaikum wr.wb Hello yii people i'm Muhammad Fahmi Azain this is tutorial about forgot password in yii framework, and i'm sorry if it does not comply with code standards yii. okay let's begin

0 0
2 followers
Viewed: 64 883 times
Version: 1.1
Category: How-tos

How to get & store Last Login DateTime in database?

Created 10 years ago by Rohit Suthar, updated 10 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: 25 721 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

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

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

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

How to show a Captcha in CForm?

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

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

Created 10 years ago by Ankit Modi, updated 5 years ago by samdark.

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

0 1
3 followers
Viewed: 61 267 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by Ankit Modi, updated 10 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: 21 167 times
Version: all
Category: How-tos

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

Created 10 years ago by Ankit Modi, updated 5 years 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: 27 863 times
Version: 1.1
Category: How-tos

Using updateAll and deleteAll with scopes

Created 10 years ago by le_top, updated 10 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: 60 215 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by Louis Gac, updated 10 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 497 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 11 285 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

How to create a Widget - Recent Comments widget

Created 10 years ago by Nisanth thulasi, updated 5 years ago by samdark.

Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

5 0
6 followers
Viewed: 44 015 times
Version: 1.1
Category: How-tos

Using rights extension with different table and column name

Created 10 years ago by Ibrar Turi, updated 10 years ago by Ibrar Turi.

Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.

0 0
2 followers
Viewed: 6 273 times
Version: 1.1
Category: How-tos

Bootstrap Yii cGridView add popup button

Created 10 years ago by Arockia Johnson SR, updated 10 years ago by Arockia Johnson SR.

Hi,

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

Save uploaded file with any filename characters

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

First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

1 0
3 followers
Viewed: 20 211 times
Version: 1.1
Category: How-tos

Find geolocation info of client through another API

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

This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

1 0
2 followers
Viewed: 9 115 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

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

How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

1 0
4 followers
Viewed: 19 512 times
Version: 1.1
Category: How-tos