Wiki

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

How to use ldap in UserIdentity for authentication

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

XUpload Workflow

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

How to write a simple application component

Created 2 years ago by zaccariaHow-tos4 comments – viewed 19,921 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,643 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-tos11 comments – viewed 19,209 times – ( +13 )
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 18,931 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,662 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,616 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,571 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,560 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())