Displaying 661-670 of 779 result(s).

Setting and getting systemwide static parameters

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 96,623 times – ( +12 ) – version 1.1
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.
tags: config

Putting Function To Be Called In View

Created 5 years ago by junxiongTips2 comments – viewed 34,228 times – ( +6 / -1 ) – version 1.1
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:
tags: view, render

Auto TDD - How to auto-run PHPUnit

Created 5 years ago by imeheszTips3 comments – viewed 15,395 times – ( +3 / -1 ) – version 1.1
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!
tags: PHPUnit, testing, TDD

Multiple-database support in Yii

Created 5 years ago by Steve FriedlHow-tos18 comments – viewed 100,406 times – ( +29 ) – version 1.1
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.
tags: Database

Quick Tip about Pagination Params

Created 5 years ago by Antonio RamirezTips2 comments – viewed 28,672 times – ( +6 ) – version 1.1
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?
tags: Pagination

Extending common classes to allow better customization

Created 5 years ago by Steve FriedlTips0 comments – viewed 28,465 times – ( +44 ) – version 1.1
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

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

Created 5 years ago by Juan CalvoTutorials4 comments – viewed 50,306 times – ( +17 / -1 ) – version 1.1
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).

ChromePHP for Yii

Created 5 years ago by imeheszTips0 comments – viewed 11,895 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Increasing AR performance in connections with Oracle

Created 5 years ago by TrejderHow-tos14 comments – viewed 23,595 times – ( +2 ) – version 1.1
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.

Using standard filters in CGridView custom fields

Created 5 years ago by GOshaHow-tos4 comments – viewed 60,899 times – ( +17 ) – version 1.1
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: