Wiki articles in category How-tos tagged with "yii2"

Showing 21-40 of 46 items.

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r ThePr0f3550r, updated 8 years ago by alrazi 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: 167 651 times
Version: 2.0
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 11 years ago by ThePr0f3550r ThePr0f3550r, updated 11 years ago by YiiJeka 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: 138 134 times
Version: 2.0
Category: How-tos

Role Management

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

Write & use a custom Component in Yii2.0

Created 11 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 129 108 times
Version: 2.0
Category: How-tos

How to implement form events

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

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 42 650 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

MongoDB's RBAC support class extending BaseManager

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

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

Created 11 years ago by raminious raminious, updated 11 years ago by jim. 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: 133 333 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 49 270 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by hrnair hrnair, updated 11 years ago by hrnair 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: 48 055 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 11 years ago by Sreenadh Sreenadh, updated 11 years ago by Sreenadh 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: 173 248 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

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

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

6 0
5 followers
Viewed: 34 351 times
Version: 2.0
Category: How-tos

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 11 years ago by robregonm robregonm, updated 11 years ago by robregonm robregonm.

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

9 0
6 followers
Viewed: 37 770 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 52 041 times
Version: 2.0
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 10 years ago by MadAnd MadAnd, updated 4 years ago by QuPsi QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 155 626 times
Version: 2.0
Category: How-tos

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 10 years ago by skworden skworden, updated 7 years ago by Yii3 Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

21 0
28 followers
Viewed: 259 452 times
Version: 2.0
Category: How-tos
2 0
3 followers
Viewed: 39 458 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 10 years ago by Wade Shuler Wade Shuler, updated 10 years ago by samdark samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

9 1
18 followers
Viewed: 132 179 times
Version: 2.0
Category: How-tos

PHP built-in server integration

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

I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

1 0
3 followers
Viewed: 62 654 times
Version: 2.0
Category: How-tos

Yii2cdn Component

Created 9 years ago by junaidatari junaidatari, updated 9 years ago by junaidatari junaidatari.

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 20 154 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 9 years ago by Wade Shuler Wade Shuler, updated 9 years ago by Wade Shuler Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 27 839 times
Version: 2.0
Category: How-tos