Wiki

Articles in category "tips", sorted by viewsX
Displaying 71-80 of 154 result(s).

Auto TDD - How to auto-run PHPUnit

Created 7 years ago by imeheszTips3 comments – viewed 16,697 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

A simple action for XUpload extension

Created 6 years ago by tydeas_drTips1 comment – viewed 16,474 times – ( +3 / -1 ) – 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

New Relic Error Alert with Yii

Created 4 years ago by simon604Tips2 comments – viewed 16,358 times – ( +6 / -1 ) – version 1.1
Introduction

Using events with CAction classes

Created 6 years ago by Antonio RamirezTips0 comments – viewed 16,199 times – ( +10 / -1 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

CJuiTabs Content

Created 5 years ago by mbalaTips3 comments – viewed 15,769 times – ( +6 / -1 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Model validation for field ranges using yii2-field-range extension

Created 3 years ago by Kartik VTips0 comments – viewed 15,596 times – ( +39 / -1 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

adding class and links to Ctreeview node

Created 6 years ago by bingjie2680Tips2 comments – viewed 15,348 times – ( +4 / -1 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 5 years ago by Xgamer99Tips3 comments – viewed 15,141 times – ( +1 / -1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 5 years ago by sebTips0 comments – viewed 14,983 times – ( +1 / -2 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

How to ensure unicity to url

Created 6 years ago by zaccariaTips3 comments – viewed 14,932 times – ( +14 / -1 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL