Wiki

Sorted by viewsX
Displaying 381-390 of 770 result(s).

Simple example for language translation

Created 2 years ago by RKAHow-tos2 comments – viewed 17,752 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

How to hide index.php on Microsoft Windows Server with IIS7

Created 3 years ago by GiulianoHow-tos2 comments – viewed 17,689 times – ( +10 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 3 years ago by skwordenHow-tos4 comments – viewed 17,470 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

Yiinitializr: The Library

Created 3 years ago by Antonio RamirezOthers9 comments – viewed 17,198 times – ( +15 ) – version 1.1
Introduction

Force a User to Change Their Password (ChangePasswordFilter)

Created 4 years ago by waterloomattTutorials2 comments – viewed 17,130 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Twitter Bootstrap style Breadcrumbs

Created 3 years ago by junaidatariHow-tos0 comments – viewed 16,992 times – ( +5 / -1 ) – version 1.1
1: Create breadcrumb in your view file.

"safe" and "unsafe" Model validators (massive assignments)

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 16,898 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Logout CSRF Protection

Created 4 years ago by Rodrigo CoelhoTutorials1 comment – viewed 16,869 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

ACL and RBAC

Created 3 years ago by zeroByteHow-tos0 comments – viewed 16,863 times – version 1.1
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 3 years ago by pckabeerHow-tos1 comment – viewed 16,850 times – ( +7 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).