Wiki articles in category How-tos

Showing 21-40 of 292 items.

Yii configuration: Dynamic & User dependent

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

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

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

1 0
3 followers
Viewed: 14 506 times
Version: 1.1
Category: How-tos

Check users online, user last activity, user last ip

Created 4 years ago by frazelli, updated 4 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: 15 481 times
Version: 1.1
Category: How-tos

Google style sign out of all other sessions

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

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

Created 4 years ago by ruderbytes, updated 3 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: 42 399 times
Version: 1.1
Category: How-tos

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 274 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 300 times
Version: 1.1
Category: How-tos

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 534 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 5 months ago by samdark.

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

0 1
3 followers
Viewed: 16 006 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 393 times
Version: all
Category: How-tos

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

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

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 575 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 7 201 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

How to create a Widget - Recent Comments widget

Created 5 years ago by Nisanth thulasi, updated 5 months 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: 31 629 times
Version: 1.1
Category: How-tos

Using rights extension with different table and column name

Created 5 years ago by Ibrar Turi, updated 5 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: 4 329 times
Version: 1.1
Category: How-tos
1 0
3 followers
Viewed: 17 327 times
Version: 1.1
Category: How-tos

Save uploaded file with any filename characters

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 13 237 times
Version: 1.1
Category: How-tos

Find geolocation info of client through another API

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 5 590 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 12 886 times
Version: 1.1
Category: How-tos