Wiki articles

Showing 161-180 of 823 items.

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

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

Created 10 years ago by Rajith R, updated 10 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: 31 495 times
Version: 1.1
Category: Tutorials
Tags: newbie, Yii, yiic

Disallowing login for INACTIVE users in Yii

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

Creating a Dependent Dropdown From Scratch in Yii2

Created 10 years ago by ThePr0f3550r, updated 6 years ago by alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

4 1
12 followers
Viewed: 160 506 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Rohit Suthar, updated 10 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: 28 742 times
Version: 1.1
Category: Tutorials

View a related field in CGridView

Created 10 years ago by rafaelt88, updated 9 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".

2 0
3 followers
Viewed: 19 071 times
Version: 1.1
Category: Tips

How to prevent Login from two places?

Created 10 years ago by Rohit Suthar, updated 10 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: 20 231 times
Version: 1.1
Category: Tutorials
1 0
5 followers
Viewed: 11 243 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

Yii Change Password with use of old and repeat password using bootstrap TbActiveForm

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

In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.

0 0
7 followers
Viewed: 56 721 times
Version: 1.1
Category: Tutorials

Nested inline active fields inside Bootstrap horizontal forms

Created 10 years ago by Kartik V, updated 10 years ago by Kartik V.

Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

5 0
40 followers
Viewed: 58 016 times
Version: 2.0
Category: How-tos

Where to implement knowledge about the addresses of the controller?

Created 10 years ago by Petr.Grishin, updated 10 years ago by Petr.Grishin.

Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

1 0
2 followers
Viewed: 51 633 times
Version: 1.1
Category: Tutorials

Make the authentication more securely

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

Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

2 0
3 followers
Viewed: 16 101 times
Version: 1.1
Category: Tutorials

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 10 years ago by Louis Gac, updated 10 years ago by Louis Gac.

Let's take the example of the above article to display an email button next to a delete button:

3 0
4 followers
Viewed: 23 128 times
Version: 1.1
Category: Tutorials

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: 43 970 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 259 times
Version: 1.1
Category: How-tos

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 10 years ago by Antonio Ramirez, updated 10 years ago by Antonio Ramirez.

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 26 111 times
Version: 2.0
Category: How-tos

CRUD operation in Yii framework

Created 10 years ago by Mohammad Fareed, updated 5 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 33 378 times
Version: 1.1
Category: Tutorials

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 10 years ago by Kartik V, updated 10 years ago by Kartik V.

This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 32 632 times
Version: 2.0
Category: How-tos

Book Has Author - Many to Many relations using Kartik\Select2

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

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 65 477 times
Version: 2.0
Category: How-tos

Sort and save order of model-elements drag & drop

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

Suppose you have Products,Categories and each product belongs in many categories

1 0
4 followers
Viewed: 19 867 times
Version: 1.1
Category: Tutorials