Expand the menu
common\components\LanguageSelector.php
<?php
namespace common\components;
The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).
namespace app\components;
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.
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.
All done, now we can call all the actionProvider actions as controllerID/actionPrefix.actionID. Here is the example:
To use jui auto complete widget first add
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.
Original source code and idea are from: PHP, PDO & Nested Transactions.
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.
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.
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.
Then, we write this in the config > main.php:
I am going to show you an effective way to validate the uniqueness of multiple columns.
There are numerous usability problems:
Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.