Wiki

Sorted by date (updated)X
Displaying 681-690 of 719 result(s).

How to log and debug variables using CWebLogRoute

Updated 4 years ago by Antonio RamirezHow-tos8 comments – viewed 50,157 times – ( +18 ) – version 1.1
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

Extending CActiveForm for some form display fixes and language tweaks

Updated 4 years ago by TrejderTips0 comments – viewed 13,553 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

How to customize error handling in console-mode applications

Updated 4 years ago by Steve FriedlHow-tos1 comment – viewed 8,937 times – ( +3 ) – 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.

Using setFlash for displaying various kind of messages

Updated 4 years ago by TrejderHow-tos6 comments – viewed 45,051 times – ( +4 / -5 ) – 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

Updated 4 years ago by Steve FriedlTips4 comments – viewed 38,271 times – ( +15 ) – 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):

Multiple Databases and Multiple Domains

Updated 4 years ago by Maurizio Domba CerinTutorials2 comments – viewed 31,619 times – ( +15 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database

How To Customize CMenu Output

Updated 4 years ago by AngeloTutorials7 comments – viewed 52,806 times – ( +10 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Using the jqueryslidemenu plugin with CMenu

Updated 4 years ago by pc131How-tos0 comments – viewed 27,759 times – ( +18 / -1 ) – version 1.1
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

Directory independent extensions

Updated 4 years ago by GOshaTips3 comments – viewed 8,889 times – ( +15 / -1 ) – 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

Updated 4 years ago by GOshaTips1 comment – viewed 33,057 times – ( +28 ) – 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