It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.
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:
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...
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.
Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.
A Yii Framework 2 component for using assets in different environments (Local/CDNs)
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.
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...
In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.
This is how i do before query on Yii 2.0
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...
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.

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.
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...
It is quite simple, but I am sure this small tutorial will help more than one of you out there :)
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.