Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.
Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.
Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview.
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
I am going to show you an effective way to validate the uniqueness of multiple columns.
Use the following css styles for carousel to work as expected.
Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.
Then, we write this in the config > main.php:
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
What I want to achieve:
While yiic shell
tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.
1. Create Extension in yii2.
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.
Hi friends,
Introduction
To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.
$this->export2excel($excel_content,$excel_file);
in your controller.
common\components\LanguageSelector.php
<?php
namespace common\components;