Wiki

Sorted by viewsX
Displaying 411-420 of 765 result(s).

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 3 years ago by LuizTips1 comment – viewed 14,511 times – ( +7 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

Auto TDD - How to auto-run PHPUnit

Created 5 years ago by imeheszTips3 comments – viewed 14,466 times – ( +3 / -1 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 2 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 14,436 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

How to log context information to logger (session id, user, ...)

Created 6 years ago by olafureTutorials0 comments – viewed 14,310 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 4 years ago by jpabloHow-tos2 comments – viewed 14,168 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

FORM with GET method causes repeated stacking of URL Parameters

Created about a year ago by Kartik VTips2 comments – viewed 14,117 times – ( +40 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created about a year ago by hrnairHow-tos2 comments – viewed 14,098 times – ( +6 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

Upload files in Yii2 with MongoDb and GridFs

Created 2 years ago by edoardo849How-tos3 comments – viewed 13,988 times – ( +8 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

Save or Update Multiple related model values in one Tabular input form

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 13,899 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?