Wiki articles in category How-tos

Showing 81-100 of 373 items.

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

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

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 10 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: 133 771 times
Version: 2.0
Category: How-tos

Using updateAll and deleteAll with scopes

Created 10 years ago by le_top, updated 10 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: 60 228 times
Version: 1.1
Category: How-tos

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

Creating a Dependent Dropdown From Scratch in Yii2

Created 10 years ago by ThePr0f3550r, updated 7 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 696 times
Version: 2.0
Category: How-tos
1 0
5 followers
Viewed: 11 288 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

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 111 times
Version: 2.0
Category: How-tos

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: 44 021 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 274 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 165 times
Version: 2.0
Category: How-tos

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 735 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 550 times
Version: 2.0
Category: How-tos

Bootstrap Yii cGridView add popup button

Created 10 years ago by Arockia Johnson SR, updated 10 years ago by Arockia Johnson SR.

Hi,

1 0
3 followers
Viewed: 21 328 times
Version: 1.1
Category: How-tos

using 'whenClient' for complex client side validation

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

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 26 105 times
Version: 2.0
Category: How-tos

Save uploaded file with any filename characters

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

Find geolocation info of client through another API

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

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 32 761 times
Version: 2.0
Category: How-tos

Using the yii2-datecontrol extension along with yii2-detail-view widget

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

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 21 693 times
Version: 2.0
Category: How-tos

Check online users / set specific user offline

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

Configuring different sessions for backend and frontend in Yii advanced app

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

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

4 0
46 followers
Viewed: 49 600 times
Version: 2.0
Category: How-tos