Wiki

Sorted by viewsX
Displaying 121-130 of 469 result(s).

XUpload Workflow

Created 10 months ago by AsgarothTutorials18 comments – viewed 20,241 times – ( +27 )
This wiki describes a more complex workflow using the XUpload widget

How to use ldap in UserIdentity for authentication

Created 3 years ago by BeerSercTutorials10 comments – viewed 20,190 times – ( +11 )
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

How to write a simple application component

Created 2 years ago by zaccariaHow-tos4 comments – viewed 20,058 times – ( +12 / -7 )
An application component is a confortable way for share information among all component of the application

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created about a year ago by c@cbaTutorials35 comments – viewed 19,758 times – ( +26 )
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

How to avoid multiple Ajax Request

Created 2 years ago by nickcvHow-tos12 comments – viewed 19,324 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.

Using International Dates

Created 2 years ago by Russell EnglandHow-tos3 comments – viewed 19,048 times – ( +16 )
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Using CJuiDialog to edit rows in a CGridView

Created about a year ago by Russell EnglandTips7 comments – viewed 18,741 times – ( +2 / -1 )
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Simplified meta tags

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

How to log changes of ActiveRecords?

Created 4 years ago by pfthTutorials5 comments – viewed 18,692 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

How to show ajax delete status in CGridView like flash messages

Created about a year ago by hasanaviHow-tos9 comments – viewed 18,664 times – ( +16 )
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())