Wiki

Sorted by ratingX
Displaying 121-130 of 480 result(s).

Module based login

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

URL management for Websites with secure and nonsecure pages

Created 8 months ago by qiangHow-tos5 comments – viewed 7,222 times – ( +14 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

How to avoid multiple Ajax Request

Created 2 years ago by nickcvHow-tos12 comments – viewed 20,190 times – ( +14 )
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

CListView AJAX filtering

Created 2 years ago by DragaTutorials14 comments – viewed 29,376 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

Using Bootstrap with LESS

Created 4 months ago by Chris83How-tos1 comment – viewed 12,372 times – ( +14 )
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.

Update/delete model with CJuiDialog (works in CGridView)

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

How to ensure unicity to url

Created about a year ago by zaccariaTips3 comments – viewed 8,354 times – ( +14 )
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Customizing Yii's formatting rules (extending CFormatter)

Created about a year ago by HaenselTips0 comments – viewed 8,694 times – ( +14 )
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

Force a User to Change Their Password (ChangePasswordFilter)

Created about a year ago by waterloomattTutorials1 comment – viewed 8,946 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 19,462 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