Wiki articles

Showing 141-160 of 805 items.

Using updateAll and deleteAll with scopes

Created 6 years ago by le_top, updated 6 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: 43 969 times
Version: 1.1
Category: How-tos

[Updated] How to create & call custom global function in whole application?

Created 6 years ago by Rohit Suthar, updated 5 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.

0 3
5 followers
Viewed: 29 319 times
Version: 1.1
Category: Tutorials

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

Created 6 years ago by Louis Gac, updated 6 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: 22 267 times
Version: 1.1
Category: How-tos

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

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

Disallowing login for INACTIVE users in Yii

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

Creating a Dependent Dropdown From Scratch in Yii2

Created 6 years ago by ThePr0f3550r, updated 2 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
11 followers
Viewed: 115 005 times
Version: 2.0
Category: How-tos

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

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

View a related field in CGridView

Created 6 years ago by rafaelt88, updated 5 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: 15 964 times
Version: 1.1
Category: Tips

How to prevent Login from two places?

Created 6 years ago by Rohit Suthar, updated 6 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: 14 916 times
Version: 1.1
Category: Tutorials
1 0
5 followers
Viewed: 7 881 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

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

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

Nested inline active fields inside Bootstrap horizontal forms

Created 6 years ago by Kartik V, updated 6 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: 50 639 times
Version: 2.0
Category: How-tos

Where to implement knowledge about the addresses of the controller?

Created 6 years ago by Petr.Grishin, updated 6 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: 6 705 times
Version: 1.1
Category: Tutorials

Make the authentication more securely

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 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: 11 193 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 6 years ago by Louis Gac, updated 6 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: 17 743 times
Version: 1.1
Category: Tutorials

How to create a Widget - Recent Comments widget

Created 6 years ago by Nisanth thulasi, updated a year 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: 33 451 times
Version: 1.1
Category: How-tos

Using rights extension with different table and column name

Created 6 years ago by Ibrar Turi, updated 6 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 739 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by Antonio Ramirez, updated 6 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: 20 799 times
Version: 2.0
Category: How-tos

CRUD operation in Yii framework

Created 6 years ago by Mohammad Fareed, updated a year ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 25 317 times
Version: 1.1
Category: Tutorials

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

Created 6 years ago by Kartik V, updated 6 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: 25 385 times
Version: 2.0
Category: How-tos