Wiki

Displaying 681-690 of 786 result(s).

How to customize error handling in console-mode applications

Created 6 years ago by Steve FriedlHow-tos1 comment – viewed 13,198 times – ( +3 / -1 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

Changing Controllers Name

Created 6 years ago by TrejderHow-tos0 comments – viewed 16,884 times – ( +5 / -1 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Using setFlash for displaying various kind of messages

Created 6 years ago by TrejderHow-tos6 comments – viewed 66,451 times – ( +4 / -6 ) – version 1.1
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 54,169 times – ( +15 / -1 ) – 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):

How To Customize CMenu Output

Created 6 years ago by AngeloTutorials7 comments – viewed 63,164 times – ( +10 / -1 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Cambiando el diseño de JuiWidgets

Created 6 years ago by Luis Lobo BorobiaTutorials1 comment – viewed 11,669 times – ( -1 ) – version 1.1
Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

Theming your Zii Widgets

Created 6 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 53,048 times – ( +20 / -1 ) – version 1.1
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

Using CButtonColumn to customize buttons in CGridView

Created 7 years ago by TrejderHow-tos19 comments – viewed 292,912 times – ( +101 / -1 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Directory independent extensions

Created 7 years ago by GOshaTips3 comments – viewed 11,983 times – ( +16 / -2 ) – 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

Created 7 years ago by qiangTips1 comment – viewed 45,318 times – ( +28 / -1 ) – 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 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