Sorted by viewsX
Displaying 431-440 of 779 result(s).

Auto TDD - How to auto-run PHPUnit

Created 5 years ago by imeheszTips3 comments – viewed 15,414 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

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,299 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 15,285 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

What to do when composer fails to update your vendor packages?

Created 2 years ago by Kartik VTutorials0 comments – viewed 15,175 times – ( +38 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

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

Created 4 years ago by jpabloHow-tos2 comments – viewed 15,140 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.

Simple Way to Upload and Save File

Created 2 years ago by Misbahul D MunirTutorials0 comments – viewed 15,124 times – ( -2 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

get summary of related model via STAT relation

Created 3 years ago by rootbearHow-tos2 comments – viewed 15,102 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

YII SaaS Multi Tenant application with single database

Created 3 years ago by Rajith RTutorials5 comments – viewed 15,084 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 15,057 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created 2 years ago by Gerhard LiebenbergHow-tos6 comments – viewed 15,018 times – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.