Wiki

Articles in category "tips"X
Displaying 81-90 of 99 result(s).

Search method of a model for filters when using dates - unixtimestamp in database

Created 2 years ago by MukkeTips1 comment – viewed 15,062 times – ( +10 )
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,485 times – ( +12 )
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.

Preventing CJuiTabs from hiding drop-down CMenu items

Created 2 years ago by Steve FriedlTips0 comments – viewed 6,160 times – ( +4 )
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

Yii code completion and calltips in Komodo Edit

Created 2 years ago by viterTips1 comment – viewed 6,979 times – ( +5 )
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Putting Function To Be Called In View

Created 2 years ago by junxiongTips2 comments – viewed 14,025 times – ( +4 / -1 )
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

Auto TDD - How to auto-run PHPUnit

Created 2 years ago by imeheszTips3 comments – viewed 9,167 times – ( +3 )
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

Created 2 years ago by Antonio RamirezTips2 comments – viewed 17,532 times – ( +5 )
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

Extending common classes to allow better customization

Created 2 years ago by Steve FriedlTips0 comments – viewed 14,046 times – ( +38 )
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

ChromePHP for Yii

Created 2 years ago by imeheszTips0 comments – viewed 7,255 times – ( +2 / -1 )
ChromePHP is a console logging extension for Google Chrome.

Styling Radio Buttons

Created 2 years ago by Steve FriedlTips2 comments – viewed 21,910 times – ( +10 )
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):