Wiki articles

Showing 101-120 of 822 items.

Cambiando el diseño de JuiWidgets

Created 13 years ago by Luis Lobo Borobia, updated 12 years ago by Ivan Wilhelm.

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.

0 0
4 followers
Viewed: 15 407 times
Version: 1.1
Category: Tutorials
Tags:

How To Customize CMenu Output

Created 13 years ago by Angelo, updated 13 years ago by Angelo.

CMenu comes with a lot of great customization options built in but sometimes you need it to do more.

7 0
15 followers
Viewed: 68 578 times
Version: 1.1
Category: Tutorials
Tags: menu

Styling Radio Buttons

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

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):

10 0
9 followers
Viewed: 68 959 times
Version: 1.1
Category: Tips

Using setFlash for displaying various kind of messages

Created 13 years ago by Trejder, updated 13 years ago by Trejder.

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.

5 4
6 followers
Viewed: 91 710 times
Version: 1.1
Category: How-tos

Changing Controllers Name

Created 13 years ago by Trejder, updated 10 years ago by Trejder.

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.

4 0
2 followers
Viewed: 26 547 times
Version: 1.1
Category: How-tos

How to customize error handling in console-mode applications

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

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 th...

3 0
4 followers
Viewed: 21 041 times
Version: 1.1
Category: How-tos

How to log and debug variables using CWebLogRoute

Created 13 years ago by Antonio Ramirez, updated 13 years ago by Antonio Ramirez.

Yii comes with a set of powerful classes for logging. If you have read the documentation about logging messages, you have noticed that we can actually decide which messages we wish to log. And this is exactly what we are going to do, using [CWebLogRoute](http://www.yiiframework.com/doc/api/1.1/CWebLog...

13 0
20 followers
Viewed: 78 259 times
Version: 1.1
Category: How-tos
Tags: Logging

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

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

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: ~~~ Error 403 You are not allowed to access this page. ~~~ This is almost certainly caused by the IP filtering mechanism that Gii uses to protect your system from outsiders - by default it allows localhost only (both IPv4 and IPv6), and r...

6 0
5 followers
Viewed: 86 196 times
Version: 1.1
Category: FAQs
Tags: config, Gii

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

Created 13 years ago by Steve Friedl, updated 12 years ago by Steve Friedl.

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).

21 1
19 followers
Viewed: 64 876 times
Version: 1.1
Category: How-tos

Using standard filters in CGridView custom fields

Created 13 years ago by GOsha, updated 13 years ago by jwerner.

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:

<?php $this->widget('zii.widgets.grid.CGridView', array(
//.....
array(
    'name'=>'...
14 0
16 followers
Viewed: 74 019 times
Version: 1.1
Category: How-tos

Increasing AR performance in connections with Oracle

Created 13 years ago by Trejder, updated 12 years ago by igorsantos07.

Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

1 0
15 followers
Viewed: 49 648 times
Version: 1.1
Category: How-tos

ChromePHP for Yii

Created 13 years ago by imehesz, updated 13 years ago by imehesz.

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 18 264 times
Version: 1.1
Category: Tips

Introducción al control de acceso basado en roles (RBAC)

Created 13 years ago by Juan Calvo, updated 13 years ago by Juan Calvo.

Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

15 1
9 followers
Viewed: 73 303 times
Version: 1.1
Category: Tutorials

Extending common classes to allow better customization

Created 13 years ago by Steve Friedl, updated 12 years ago by Steve Friedl.

The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

36 0
19 followers
Viewed: 41 301 times
Version: 1.1
Category: Tips
Tags:

Quick Tip about Pagination Params

Created 13 years ago by Antonio Ramirez, updated 13 years ago by Antonio Ramirez.

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?

5 0
8 followers
Viewed: 62 753 times
Version: 1.1
Category: Tips

Multiple-database support in Yii

Created 13 years ago by Steve Friedl, updated 11 years ago by phazei.

The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.

20 0
39 followers
Viewed: 144 130 times
Version: 1.1
Category: How-tos
Tags: database

Auto TDD - How to auto-run PHPUnit

Created 13 years ago by imehesz, updated 13 years ago by imehesz.

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!

3 0
6 followers
Viewed: 20 744 times
Version: 1.1
Category: Tips

Putting Function To Be Called In View

Created 13 years ago by junxiong, updated 13 years ago by junxiong.

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:

5 1
5 followers
Viewed: 51 760 times
Version: 1.1
Category: Tips
Tags: render, view

Setting and getting systemwide static parameters

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.

11 0
12 followers
Viewed: 146 048 times
Version: 1.1
Category: How-tos
Tags: config

Dynamic Sidebar using CClipWidget

Created 13 years ago by Sheldmandu, updated 10 years ago by Cozumel.

There are a couple of ways to achieve this, but the first is preferred.

18 0
18 followers
Viewed: 53 674 times
Version: 1.1
Category: How-tos