Wiki

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

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 2 years ago by a110yTips7 comments – viewed 12,286 times – ( +2 )
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Functional tests independing from your urlManager settings

Created 2 years ago by RusAlexTips1 comment – viewed 5,516 times
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

htmlOptions explained for various controls.

Created 2 years ago by WoilTips1 comment – viewed 25,795 times – ( +16 )
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

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

Created 2 years ago by MukkeTips1 comment – viewed 15,381 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,880 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 FriedlTips1 comment – viewed 6,398 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 7,140 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,608 times – ( +5 / -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,379 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 18,005 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