Wiki

Articles in category "tips", sorted by ratingX
Displaying 91-100 of 154 result(s).

CjuiDatepicker

Created 4 years ago by hiral darjiTips1 comment – viewed 8,024 times – ( +3 / -1 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

Expert's model generation with Gii

Created 3 years ago by le_topTips0 comments – viewed 8,971 times – ( +3 / -1 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

Inline views, write less

Created 4 years ago by FirebreakerTips0 comments – viewed 6,669 times – ( +3 / -1 )
Sometimes writing views like

Using CJuiDialog to edit rows in a CGridView

Created 6 years ago by Russell EnglandTips8 comments – viewed 33,990 times – ( +4 / -2 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Shrink Yii, help your IDE and speed up copying

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

Yii Security-extended guide

Created 5 years ago by bingjie2680Tips11 comments – viewed 20,763 times – ( +6 / -7 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Customize your Growl/Alert msg easy and quickly

Created 2 years ago by Scott_HuangTips0 comments – viewed 6,468 times – ( +3 / -2 ) – version 2.0
I leverage Kartik's notification widgets.

Auto TDD - How to auto-run PHPUnit

Created 6 years ago by imeheszTips3 comments – viewed 16,284 times – ( +3 / -2 ) – 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

How to use a component before every action of a controller

Created 4 years ago by transistorTips1 comment – viewed 35,698 times – ( +3 / -2 ) – version 1.1
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

Search a file size range in CGridView

Created 4 years ago by CrazyCatTips0 comments – viewed 7,087 times – ( +2 / -1 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".