[Wiki] Login Form With email or Whatever
In login form model /** * LoginForm class. * LoginForm is the data structure for keeping * user login form data. It is used by the 'login' action of 'SiteController'. */ class LoginForm extends...
View Article[Extension] yii2-datecontrol
Control date formats of attributes separately for View and Model for Yii 2.0.
View Article[Extension] yiiheart
Boilerplate Yii for start new project include Yiibooster, Right, giiHeart, PHPExcel
View Article[Wiki] Update Gridview with Dropdown Selection
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum... In the view you have: the js script for capturing the...
View Article[Wiki] How to avoid a database update if the ActiveRecord was not modified
Classic Scenario The classic Yii way for doing an update action is as follows: load the model using the id (or other data) received with the request massively assign its attributes if validation is ok,...
View Article[Extension] yii2sshconsole
Provides a console controller which is able to execute console commands.
View Article[Wiki] Installare Yii 2 usando XAMPP su Windows in versione portabile
Introduzione Una delle soluzioni che preferisco per studiare un framework PHP è avere a disposizione un webserver portabile, ovvero che non richiede una vera e propria installazione. Questo mi permette...
View Article[Wiki] Advanced CGridview issues - custom button using php and html
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button) This code could be used also for bootstrap/booster CGridview In this example will use...
View Article[Wiki] How to use BootstrapInterface
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....
View Article[Wiki] Displaying, Sorting and Filtering Model Relations on a GridView
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. As you know if you have been playing with Yii2 lately,...
View Article[Wiki] Escape from Default's Yii2 Delete Confirm Box
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...
View Article[Wiki] How to use GridView with AJAX
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...
View Article[Wiki] How to send emails using SMTP
Follow @robregonm Ver en Español To send emails from Yii2 is pretty straightforward, since it now uses Swiftmailer for that purpose. Configuration In your config file just add (it has been already...
View Article[Wiki] Cómo enviar emails usando SMTP
Seguir a @robregonm View in english Enviar emails en Yii2 es bastante sencillo, ya que usa Swiftmailer para tal propósito. Configuración n el archivo de configuración sólo agregue (Si usó composer para...
View Article[Wiki] Update CGridview row separately using ajax request
There are cases you want to update a record on CGridview directly In this wiki I will show how to do that In your view file: $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider' =>...
View Article