Sorted by commentsX
Displaying 301-310 of 779 result(s).

Send asset folder path to a javascript of a widget

Created 5 years ago by sensorarioTips4 comments – viewed 22,078 times – ( +4 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Using CListView to display items next to each other (in columns)

Created 3 years ago by thyseusTips4 comments – viewed 12,326 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Shrink Yii, help your IDE and speed up copying

Created 5 years ago by dckurushinTips4 comments – viewed 10,131 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

how to use github (un)official extension repo in your Yii project

Created 5 years ago by RusAlexTips4 comments – viewed 8,484 times – ( +4 ) – version 1.1
Using a git submodule command in your yii project

Create Form With DynamicModel

Created 2 years ago by Misbahul D MunirTips4 comments – viewed 11,380 times – ( +2 ) – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

Add model validator in Controller

Created 2 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 13,981 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

How to setup yiic on WAMP (XP/Vista)

Created 7 years ago by krillzipTutorials3 comments – viewed 77,403 times – ( +3 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

How to keep filters simple in CGridView

Created about a year ago by PeppeHow-tos3 comments – viewed 5,260 times – ( +1 ) – version 1.1
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

How to hide index.php on nginx

Created 7 years ago by milesTutorials3 comments – viewed 56,580 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

How to re enable logging during unit testing

Created 4 years ago by AsgarothHow-tos3 comments – viewed 14,999 times – ( +11 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.