Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 51-60 of 172 result(s).

Manage application configuration in different modes

Created 4 years ago by qiangTutorials4 comments – viewed 20,932 times – ( +14 )
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Module based login

Created 2 years ago by suriyansureshTutorials6 comments – viewed 32,629 times – ( +14 )
If you want to add module based login to a site without using RBAC, please follow these guidelines.

CListView AJAX filtering

Created 2 years ago by DragaTutorials14 comments – viewed 28,418 times – ( +14 )
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Update/delete model with CJuiDialog (works in CGridView)

Created about a year ago by ifdatticTutorials6 comments – viewed 31,256 times – ( +14 )
This is based on this article.

Force a User to Change Their Password (ChangePasswordFilter)

Created about a year ago by waterloomattTutorials1 comment – viewed 8,664 times – ( +14 )
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.

How to log changes of ActiveRecords?

Created 4 years ago by pfthTutorials5 comments – viewed 18,735 times – ( +27 / -2 )
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created about a year ago by c@cbaTutorials0 comments – viewed 16,253 times – ( +20 / -1 )
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

Serve jQuery and jQuery-UI from Google's CDN

Created about a year ago by YetiTutorials14 comments – viewed 12,579 times – ( +13 )
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

Eclipse PDT - code-hints, references and other goodies

Created 4 years ago by mindehTutorials3 comments – viewed 20,892 times – ( +13 )
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

Simplified meta tags

Created 3 years ago by Y!!Tutorials1 comment – viewed 18,776 times – ( +13 )
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.