[Wiki] Open bootstrap modal and load content via Ajax
My goal here is to Open bootstrap modal and load ANY content using ajax response. This instruction is exclusive only for those who are using yiistrap. In view file, <?php...
View Article[Extension] yii2-context-menu
A context menu for Yii Framework 2.0 styled for Bootstrap 3.
View Article[Extension] transactiondemarcation
Yii db transaction helper. Ensures your transactions.
View Article[Wiki] What to do when composer fails to update your vendor packages?
Problem Statement Have you faced some of these problems when using composer with your Yii 2 installation? Running a composer update does not fetch any new packages (even though the source is updated) A...
View Article[Wiki] How to read HTML5 Multiple File Input from controller?
Problem Statement Ok, so you have a HTML 5 file input markup on your view and you have enabled multiple attribute to true. You may also be using widgets based on HTML5 input like...
View Article[Wiki] Yii2 default values for Index data Provider
Guys, maybe a lot of you will not find this interesting but, for me has been really helpful. I have a list of quotations ( yes, my application manage quotations) in the default index of my controller,...
View Article[Wiki] Activating Bootstrap 3 Tooltips & Popover for your Yii Site.
Problem Statement With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap,...
View Article[Wiki] Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript...
Problem Statement With Yii Framework 2.0, one of the many changes, that Yii 1.x developers will face is removal of all client helpers and revamp of the CClientScript functionality. For example no more...
View Article[Wiki] Handling tabular data loading and validation in Yii 2
Problem Statement How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information...
View Article[Wiki] Yii 2 list of path aliases available with default basic and advanced app.
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases...
View Article[Wiki] FORM with GET method causes repeated stacking of URL Parameters
Problem Statement You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below: // In Yii 2 $form = ActiveForm::begin([ 'id' => 'order-search-form', 'method' => 'get', ]);...
View Article[Extension] zyx-phpmailer
This extension adds integration of PHPMailer to Yii 2 framework
View Article[Wiki] My Own Components Folder in Yii2
In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different. I am new with name spaces, so for me was a little difficult...
View Article[Wiki] How to store array/widget configuration to the database with config...
Requirement You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then...
View Article