Wiki

Sorted by viewsX
Displaying 391-400 of 777 result(s).

Twitter Bootstrap style Breadcrumbs

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

Force a User to Change Their Password (ChangePasswordFilter)

Created 4 years ago by waterloomattTutorials2 comments – viewed 17,576 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.

ACL and RBAC

Created 4 years ago by zeroByteHow-tos0 comments – viewed 17,516 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.

Update a part of content using AJAX when select a GridView row

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 17,486 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

Logout CSRF Protection

Created 5 years ago by Rodrigo CoelhoTutorials1 comment – viewed 17,389 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.

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

Created 4 years ago by pckabeerHow-tos1 comment – viewed 17,281 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).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 5 years ago by a110yTips7 comments – viewed 17,158 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

A simple class to use a different db for a module

Created 5 years ago by tydeas_drTips3 comments – viewed 17,138 times – ( +10 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

TDD with PHPUnit_Story and Yii

Created 4 years ago by sidewinderTutorials1 comment – viewed 16,905 times – ( +7 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.