Wiki

Displaying 651-660 of 771 result(s).

belajar AR : part 1 (learn AR : part 1)

Created 5 years ago by riandayTutorials0 comments – viewed 8,375 times – version 1.1
hai teman yii... apa kabar.. kembali lagi bersama catatan saya..
tags: indonesia

Dynamic Sidebar using CClipWidget

Created 5 years ago by SheldmanduHow-tos5 comments – viewed 26,224 times – ( +21 ) – version 1.1
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.

Setting and getting systemwide static parameters

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 92,777 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 33,115 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,068 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 96,840 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,196 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 27,840 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 48,812 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,597 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.