Wiki articles in category How-tos

Showing 1-20 of 80 items.
0 0
3 followers
Viewed: 11 721 times
Version: 2.0
Category: How-tos
Tags:

MySQL migration environment

Created 8 years ago by Fabrizio Caldarelli, updated 8 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: 12 605 times
Version: 2.0
Category: How-tos

`forceCopy` per Asset Bundle

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

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

MongoDB's RBAC support class extending BaseManager

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

Integrating ZF2 into Yii - use case demonstrated

Created 10 years ago by Boaz, updated 9 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 13 872 times
Version: 2.0
Category: How-tos

Move sources to src

Created 4 years ago by samdark, updated 4 years ago by samdark.

Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.

11 0
6 followers
Viewed: 14 381 times
Version: 2.0
Category: How-tos

Use non Gmail/Gsuite on Gcloud projects

Created 6 years ago by Luis Armando, updated 5 years 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: 15 692 times
Version: 2.0
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 8 years ago by Chris Backhouse, updated 8 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: 16 416 times
Version: 2.0
Category: How-tos

Single PHP entry point with Nginx

Created 8 years ago by MadAnd, updated 8 years ago by MadAnd.

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

4 0
3 followers
Viewed: 17 495 times
Version: all
Category: How-tos

Yii2cdn Component

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

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

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

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 19 486 times
Version: 2.0
Category: How-tos

Execute migration on server/linux using shell

Created 8 years ago by darioo, updated 8 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: 19 530 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 9 years ago by Antonio Ramirez, updated 9 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 19 595 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by Ankit Modi, updated 9 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: 20 447 times
Version: all
Category: How-tos

Getting information from the current locale

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

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 20 549 times
Version: 2.0
Category: How-tos

How to read HTML5 Multiple File Input from controller?

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

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

Created 9 years ago by Kartik V, updated 9 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: 20 884 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 10 years ago by le_top, updated 8 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 21 290 times
Version: all
Category: How-tos

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

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

Managing a star rating with the StarRating widget in Yii 2

Created 9 years ago by Kartik V, updated 9 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: 24 013 times
Version: 2.0
Category: How-tos