If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.
In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.
Here you learn to create and set a simple ahref-link to logout the current user.
suppose to have in Mongo a collection "user" like:
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.
There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII
The classic Yii way for doing an update action is as follows:
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
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...
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.
With the adoption of PJax on Yii2 things have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.