Wiki

Sorted by ratingX
Displaying 481-490 of 786 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 4 years ago by Rajith RTips20 comments – viewed 44,495 times – ( +11 / -9 ) – 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 .

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

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

Performance - A Guide For Best Practice

Created 7 years ago by Y!!Tutorials3 comments – viewed 19,969 times – ( +8 / -6 ) – 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 5 years ago by RusAlexTutorials9 comments – viewed 48,731 times – ( +6 / -4 ) – 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 5 years ago by BoazHow-tos11 comments – viewed 96,421 times – ( +6 / -4 ) – version 1.1
We start slowly and simple...

YII SaaS Multi Tenant application with single database

Created 4 years ago by Rajith RTutorials5 comments – viewed 17,001 times – ( +11 / -11 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

How to insert a Simple Dialog Box

Created 6 years ago by bluyellHow-tos6 comments – viewed 30,259 times – ( +5 / -3 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

[Updated] How to create & call custom global function in whole application?

Created 3 years ago by Rohit SutharTutorials8 comments – viewed 18,756 times – ( +5 / -3 ) – version 1.1
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

How to show a Captcha in CForm?

Created 3 years ago by Rohit SutharHow-tos0 comments – viewed 9,509 times – ( +5 / -3 ) – version 1.1
In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.
tags: captcha, CForm, widget

model rules depended by user roles-permissions

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 11,425 times – ( +3 / -1 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not