Wiki articles

Showing 121-140 of 810 items.

How to display images in CJuiAutoComplete without extenstions

Created 5 years ago by Asmaa, updated a year ago by samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 9 196 times
Version: 1.1
Category: Tutorials

How to hide /frontend/web in url addresses on apache

Created 5 years ago by raminious, updated 5 years ago by jim..

There is an issue on Yii2 to redirecting / urls to /frontend/web.
In other words we need a way to hidden /frontend/web from addresses.
We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

9 0
20 followers
Viewed: 108 203 times
Version: 2.0
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 5 years ago by edoardo849, updated 5 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 10 410 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

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

Created 5 years ago by Smithesh, updated 5 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: 16 574 times
Version: 1.1
Category: How-tos

embedded javascript block in your view with IDE checking or intellisense

Created 6 years ago by yiqing95, updated 6 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 9 467 times
Version: 2.0
Category: Tips

Check users online, user last activity, user last ip

Created 6 years ago by frazelli, updated 6 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: 18 052 times
Version: 1.1
Category: How-tos

How to implement form events

Created 6 years ago by Antonio Ramirez, updated 4 years ago by deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 29 509 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Building a REST API in Yii2.0

Created 6 years ago by sirin k, updated 3 years ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 135 839 times
Version: 2.0
Category: Tutorials

Write & use a custom Component in Yii2.0

Created 6 years ago by sirin k, updated 3 years ago by Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

13 0
11 followers
Viewed: 105 990 times
Version: 2.0
Category: How-tos

Translation from .txt file

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

Translation from .txt file Note:

0 2
4 followers
Viewed: 7 834 times
Version: 1.1
Category: Tutorials

Google style sign out of all other sessions

Created 6 years ago by Rohit Suthar, updated 5 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: 14 936 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by ruderbytes, updated 4 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: 47 564 times
Version: 1.1
Category: How-tos

Role Management

Created 6 years ago by Dency G B, updated 6 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 18 969 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

How to get & store Last Login DateTime in database?

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

Enhance security of cookie-based login

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

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

2 0
2 followers
Viewed: 13 739 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by Ankit Modi, updated a year ago by samdark.

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

1 1
6 followers
Viewed: 42 604 times
Version: 1.1
Category: Tutorials

Forcing login for all pages using CBehavior

Created 6 years ago by Rohit Suthar, updated 6 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: 16 613 times
Version: 1.1
Category: Tutorials

Expert's model generation with Gii

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

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

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

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 12 804 times
Version: all
Category: Tutorials