Wiki

Displaying 371-380 of 480 result(s).

Using standard filters in CGridView custom fields

Created 2 years ago by GOshaHow-tos4 comments – viewed 35,317 times – ( +15 )
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Moving project code outside of webroot (plus multiple project support)

Created 2 years ago by Steve FriedlHow-tos5 comments – viewed 25,061 times – ( +22 / -1 )
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

"Why do I get a 403 error when trying to use Gii?"

Created 2 years ago by Steve FriedlFAQs2 comments – viewed 24,321 times – ( +7 )
After enabling the Gii module in your protected/config/main.php file and then try to use it with http://example.com/index.php?r=gii, you get an error:
tags: Gii, config

How to log and debug variables using CWebLogRoute

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 30,011 times – ( +13 )
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

How to customize error handling in console-mode applications

Created 2 years ago by Steve FriedlHow-tos1 comment – viewed 5,820 times – ( +3 )
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 2 years ago by TrejderHow-tos0 comments – viewed 8,292 times – ( +4 )
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 2 years ago by TrejderHow-tos6 comments – viewed 23,532 times – ( +4 / -4 )
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 2 years ago by Steve FriedlTips3 comments – viewed 22,604 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):

How To Customize CMenu Output

Created 2 years ago by AngeloTutorials5 comments – viewed 34,420 times – ( +9 )
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 2 years ago by Luis Lobo BorobiaTutorials1 comment – viewed 6,167 times
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.