Articles in category "tips", sorted by date (updated)X
Displaying 131-140 of 141 result(s).

Auto TDD - How to auto-run PHPUnit

Updated 3 years ago by imeheszTips3 comments – viewed 12,926 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

Quick Tip about Pagination Params

Updated 4 years ago by Antonio RamirezTips2 comments – viewed 25,027 times – ( +6 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination

ChromePHP for Yii

Updated 4 years ago by imeheszTips0 comments – viewed 9,997 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Extending CActiveForm for some form display fixes and language tweaks

Updated 4 years ago by TrejderTips0 comments – viewed 13,517 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Styling Radio Buttons

Updated 4 years ago by Steve FriedlTips4 comments – viewed 38,175 times – ( +15 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

Directory independent extensions

Updated 4 years ago by GOshaTips3 comments – viewed 8,865 times – ( +15 / -1 ) – version 1.1
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

Adding Yii Search to Your Browser Search Box

Updated 4 years ago by GOshaTips1 comment – viewed 32,994 times – ( +28 ) – version 1.1
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

Code style

Updated 4 years ago by g3ck0Tips2 comments – viewed 14,072 times – ( +29 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Saving files to a blob field in the database

Updated 4 years ago by zaccariaTips8 comments – viewed 42,985 times – ( +9 / -2 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

Reading the doc

Updated 4 years ago by OrtekoTips0 comments – viewed 6,715 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc