Wiki

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

Yii code completion and calltips in Komodo Edit

Updated 4 years ago by weiTips1 comment – viewed 10,099 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Mais segurança em suas aplicações com Yii e PHPIDS

Updated 4 years ago by Rafael GarciaHow-tos0 comments – viewed 6,951 times – ( +2 / -1 ) – version 1.1
PHPIDS é conhecido projeto que pode ser visto em php-ids.org.
tags: phpids, security

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

Updated 4 years ago by Juan CalvoTutorials4 comments – viewed 39,810 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).

embed a view file of the class which implement the CAction.

Updated 4 years ago by DavidhhuanTutorials1 comment – viewed 7,274 times – ( +1 / -1 ) – version 1.1
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it from one controller to the other controller, so we also need the "same" view file work for us, here is an example.
tags: actions, render, views

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

Updated 4 years ago by riandayTutorials0 comments – viewed 7,677 times – version 1.1
hai teman yii... apa kabar.. kembali lagi bersama catatan saya..
tags: indonesia

Setting and getting systemwide static parameters

Updated 4 years ago by Steve FriedlHow-tos3 comments – viewed 67,977 times – ( +11 ) – 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

Updated 4 years ago by junxiongTips2 comments – viewed 26,442 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

Updated 4 years ago by imeheszTips3 comments – viewed 13,294 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

Using standard filters in CGridView custom fields

Updated 4 years ago by jwernerHow-tos4 comments – viewed 52,904 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:

Quick Tip about Pagination Params

Updated 4 years ago by Antonio RamirezTips2 comments – viewed 25,597 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