Wiki

Articles in category "tips", sorted by commentsX
Displaying 61-70 of 103 result(s).

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 11 months ago by LuizTips1 comment – viewed 6,242 times – ( +6 )
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

Adding Yii Search to Your Browser Search Box

Created 2 years ago by qiangTips1 comment – viewed 22,623 times – ( +26 )
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 yiiframework.com. 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

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

Preventing CJuiTabs from hiding drop-down CMenu items

Created 2 years ago by Steve FriedlTips1 comment – viewed 6,396 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.

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,874 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.

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.

htmlOptions explained for various controls.

Created 2 years ago by WoilTips1 comment – viewed 25,780 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:

Functional tests independing from your urlManager settings

Created 2 years ago by RusAlexTips1 comment – viewed 5,513 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:

Making friends' configs, DB credentials and paths with version control

Created 8 months ago by Alexander PalamarchukTips1 comment – viewed 2,871 times – ( +2 / -1 )
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

URL component access functions

Created 2 years ago by Steve FriedlTips1 comment – viewed 7,991 times – ( +28 )
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request