Wiki articles

Showing 141-160 of 822 items.

Write & use a custom Component in Yii2.0

Created 9 years ago by sirin k, updated 6 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)

14 0
11 followers
Viewed: 122 049 times
Version: 2.0
Category: How-tos

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 957 times
Version: 1.1
Category: Tutorials

Google style sign out of all other sessions

Created 9 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: 25 891 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by ruderbytes, updated 7 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: 60 165 times
Version: 1.1
Category: How-tos

Role Management

Created 9 years ago by Dency G B, updated 9 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: 24 112 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

How to get & store Last Login DateTime in database?

Created 9 years ago by Rohit Suthar, updated 9 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: 24 821 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 712 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by Ankit Modi, updated 5 years 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: 49 643 times
Version: 1.1
Category: Tutorials

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 503 times
Version: 1.1
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 898 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: 10 989 times
Version: 1.1
Category: Tips

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 628 times
Version: all
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 519 times
Version: 1.1
Category: How-tos

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

Created 9 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: 60 386 times
Version: 1.1
Category: How-tos

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 447 times
Version: all
Category: How-tos

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

Created 9 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 116 times
Version: 1.1
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 9 years ago by ThePr0f3550r, updated 9 years ago by YiiJeka.

Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"

9 0
22 followers
Viewed: 131 693 times
Version: 2.0
Category: How-tos

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

[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 604 times
Version: 1.1
Category: Tutorials

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: 25 944 times
Version: 1.1
Category: How-tos