Wiki

Sorted by ratingX
Displaying 531-540 of 774 result(s).

Multiple Database Connection : Select database based on login user id, Dynamic

Created 2 years ago by Rajith RHow-tos4 comments – viewed 23,864 times – ( +9 / -6 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Performance - A Guide For Best Practice

Created 6 years ago by Y!!Tutorials3 comments – viewed 18,290 times – ( +8 / -5 ) – version 1.1
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
tags: performance

Exporting CGridView results to CSV file

Created 4 years ago by RusAlexTutorials9 comments – viewed 42,939 times – ( +6 / -3 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Creating and updating model and its related models in one form, inc. image

Created 3 years ago by BoazHow-tos11 comments – viewed 80,814 times – ( +6 / -3 ) – version 1.1
We start slowly and simple...

Search a file size range in CGridView

Created 3 years ago by CrazyCatTips0 comments – viewed 5,755 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

Advanced CTabView using CClipWidget

Created 7 years ago by krillzipTutorials1 comment – viewed 12,045 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Clear CGridView Filters, Sort & Pager

Created about a year ago by le_topHow-tos0 comments – viewed 7,545 times – ( +2 ) – version 1.1
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

How to pass the third parameter to UserIdentity on login authentication

Created about a year ago by Rohit SutharHow-tos6 comments – viewed 12,325 times – ( +2 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

Selecting best language based on Browser language and available languages.

Created about a year ago by le_topTips0 comments – viewed 4,369 times – ( +2 ) – version 1.1
Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

Active Record snapshotting (Model data base history)

Created about a year ago by BizleyTutorials3 comments – viewed 4,964 times – ( +2 ) – version 1.1
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.