Wiki articles in category How-tos

Showing 1-20 of 68 items.

Before Query Example : Soft Delete

Created 4 years ago by moo.tensai, updated 4 years ago by moo.tensai.

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 13 271 times
Version: 2.0
Category: How-tos

PHP built-in server integration

Created 3 years ago by Headshaker, updated 3 years ago by 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)

0 0
2 followers
Viewed: 31 188 times
Version: 2.0
Category: How-tos

Execute migration on server/linux using shell

Created 3 years ago by darioo, updated 3 years ago by darioo.

It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

0 0
3 followers
Viewed: 11 494 times
Version: 2.0
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 3 years ago by Chris Backhouse, updated 3 years ago by Chris Backhouse.

The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.

0 0
3 followers
Viewed: 11 167 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 5 years ago by aarondfrancis, updated 5 years ago by YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 18 301 times
Version: 2.0
Category: How-tos

MySQL migration environment

Created 3 years ago by Fabrizio Caldarelli, updated 3 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 8 807 times
Version: 2.0
Category: How-tos
0 0
3 followers
Viewed: 9 156 times
Version: 2.0
Category: How-tos
Tags:

Yii2cdn Component

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

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

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

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

Created 2 years ago by Wade Shuler, updated 2 years ago by 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: 11 823 times
Version: 2.0
Category: How-tos

Use non Gmail/Gsuite on Gcloud projects

Created a year ago by Luis Armando, updated 11 months ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 5 986 times
Version: 2.0
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated 5 months ago by samdark.
0 2
40 followers
Viewed: 13 350 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Kartik V, updated 4 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: 141 585 times
Version: 2.0
Category: How-tos

using 'whenClient' for complex client side validation

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

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

0 0
3 followers
Viewed: 11 013 times
Version: 2.0
Category: How-tos

Book Has Author - Many to Many relations using Kartik\Select2

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

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 20 554 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Kartik V, updated 5 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: 23 222 times
Version: 2.0
Category: How-tos

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

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

Role Management

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

MongoDB's RBAC support class extending BaseManager

Created 4 years ago by edoardo849, updated 4 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: 9 360 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
0 0
5 followers
Viewed: 35 036 times
Version: 2.0
Category: How-tos

Managing a star rating with the StarRating widget in Yii 2

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

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 16 163 times
Version: 2.0
Category: How-tos