Wiki articles

Showing 41-60 of 165 items.

Relational data fields display and edit with the yii2-detail-view extension

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

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

4 0
41 followers
Viewed: 65 935 times
Version: 2.0
Category: Tutorials

Nested inline active fields inside Bootstrap horizontal forms

Created 11 years ago by Kartik V, updated 11 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: 59 179 times
Version: 2.0
Category: How-tos

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 25 647 times
Version: all
Category: Tutorials

How to sum (Update) of all input button price value using jquery

Created 10 years ago by Ankit Modi, updated 10 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: 22 010 times
Version: all
Category: How-tos

Role Management

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

embedded javascript block in your view with IDE checking or intellisense

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

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

2 0
3 followers
Viewed: 14 307 times
Version: 2.0
Category: Tips

MongoDB's RBAC support class extending BaseManager

Created 10 years ago by edoardo849, updated 10 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: 14 337 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Create Form With DynamicModel

Created 10 years ago by Misbahul D Munir, updated 10 years ago by Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

4 0
8 followers
Viewed: 49 840 times
Version: 2.0
Category: Tips
Tags: form, model, yii2
0 0
5 followers
Viewed: 48 100 times
Version: 2.0
Category: How-tos

Save and Display Date/Time Fields in different formats in Yii2

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

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 180 281 times
Version: 2.0
Category: How-tos

Simple Way to Upload and Save File

Created 10 years ago by Misbahul D Munir, updated 10 years ago by Misbahul D Munir.

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 40 912 times
Version: 2.0
Category: Tutorials

Step by step for how to full export Yii2 grid to excel

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

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

1 0
5 followers
Viewed: 77 650 times
Version: 2.0
Category: Tips

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

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

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 80 773 times
Version: 2.0
Category: Tips

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

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

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 46 296 times
Version: 2.0
Category: How-tos

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 10 years ago by Deepak Pradhan, updated 10 years ago by Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 10 126 times
Version: 2.0
Category: Tips

Pjax on ActiveForm and GridView - Yii2

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

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

7 0
16 followers
Viewed: 169 748 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

5 0
5 followers
Viewed: 32 924 times
Version: 2.0
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 10 years ago by ThePr0f3550r, updated 10 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: 135 587 times
Version: 2.0
Category: How-tos

Yii 2 list of path aliases available with default basic and advanced app.

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

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

15 4
46 followers
Viewed: 185 953 times
Version: 2.0
Category: Tips

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

Created 10 years ago by raminious, updated 10 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)

11 0
22 followers
Viewed: 130 324 times
Version: 2.0
Category: How-tos