Wiki articles in category How-tos

Showing 21-40 of 70 items.
Created 3 years ago by moo.tensai, updated 3 years ago by moo.tensai.

Before Query Example : Soft Delete

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 12 012 times
Version: 2.0
Category: How-tos
Created 3 years ago by MadAnd, updated 3 years ago by MadAnd.

Single PHP entry point with Nginx

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

3 0
3 followers
Viewed: 8 484 times
Version: all
Category: How-tos
2 0
2 followers
Viewed: 18 795 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated 5 months ago by Yii3.

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

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.

16 0
27 followers
Viewed: 166 595 times
Version: 2.0
Category: How-tos
Created 3 years ago by MadAnd, updated 3 years ago by MadAnd.

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

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.

3 0
13 followers
Viewed: 80 019 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated 3 years ago by skworden.

Use kartik Growl with Yii2 flash messages

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

5 0
10 followers
Viewed: 34 419 times
Version: 2.0
Category: How-tos
Created 3 years ago by schmunk, updated 3 years ago by schmunk.

`forceCopy` per Asset Bundle

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 6 605 times
Version: 2.0
Category: How-tos
Created 3 years ago by robregonm, updated 3 years ago by robregonm.

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

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.

5 0
5 followers
Viewed: 19 994 times
Version: 2.0
Category: How-tos
Created 3 years ago by mariosimaremare, updated 3 years ago by mariosimaremare.

Moving the vendor directory for multiple projects

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

4 0
4 followers
Viewed: 17 759 times
Version: 2.0
Category: How-tos
Created 3 years ago by Sreenadh, updated 3 years ago by Sreenadh.

Pjax on ActiveForm and GridView - Yii2

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

5 0
13 followers
Viewed: 107 357 times
Version: 2.0
Category: How-tos
Created 3 years ago by hrnair, updated 3 years ago by hrnair.

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

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

2 0
7 followers
Viewed: 29 868 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 32 231 times
Version: 2.0
Category: How-tos
Created 3 years ago by raminious, updated 3 years ago by jim..

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

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)

7 0
18 followers
Viewed: 94 570 times
Version: 2.0
Category: How-tos
Created 3 years ago by edoardo849, updated 3 years ago by edoardo849.

MongoDB's RBAC support class extending BaseManager

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: 8 499 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
Created 4 years ago by Antonio Ramirez, updated 2 years ago by deacs.

How to implement form events

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: 22 949 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2
Created 4 years ago by sirin k, updated a year ago by Maurizio Domba Cerin.

Write & use a custom Component in Yii2.0

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)

11 0
11 followers
Viewed: 88 292 times
Version: 2.0
Category: How-tos
Created 4 years ago by Dency G B, updated 4 years ago by Dency G B.

Role Management

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: 14 437 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

How to show Image view after upload and delete view image using eajaxupload extension

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
3 followers
Viewed: 14 557 times
Version: all
Category: How-tos
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

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

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

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

Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

0 0
2 followers
Viewed: 19 617 times
Version: all
Category: How-tos