Wiki

Articles in category "tips", sorted by ratingX
Displaying 91-100 of 149 result(s).

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Created 2 years ago by Rajith RTips20 comments – viewed 34,086 times – ( +11 / -8 ) – version 1.1
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

Search a file size range in CGridView

Created 2 years ago by CrazyCatTips0 comments – viewed 4,580 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".

Selecting best language based on Browser language and available languages.

Created 4 months ago by le_topTips0 comments – viewed 2,717 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.

Rendering Views and Updating them with Ajax

Created about a year ago by Manish GuptaTips4 comments – viewed 16,285 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Custom Archive in Blog system

Created 2 years ago by nirmalrokaTips0 comments – viewed 4,735 times – ( +2 ) – version 1.1
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

Solution for session lose of Facebook iframe application in Internet Explorer .

Created 2 years ago by sirin kTips0 comments – viewed 6,684 times – ( +2 ) – version 1.1
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.

Yii2 default values for Index data Provider

Created about a year ago by CTalaTips1 comment – viewed 4,962 times – ( +2 ) – version 2.0
Guys,

an easy way to required multi columns(At least one cannot be blank)

Created 3 years ago by 1065227709Tips0 comments – viewed 5,501 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 2 years ago by Luis Lobo BorobiaTips0 comments – viewed 4,671 times – ( +2 )
We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

More on SSE and Yii

Created 2 years ago by FirebreakerTips3 comments – viewed 4,271 times – ( +2 )
This is not actually Yii involved.