Wiki

Sorted by ratingX
Displaying 481-490 of 784 result(s).

Exporting CGridView results to CSV file

Created 5 years ago by RusAlexTutorials9 comments – viewed 47,486 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 4 years ago by BoazHow-tos11 comments – viewed 93,678 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 16,435 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 5 years ago by bluyellHow-tos6 comments – viewed 29,553 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 17,346 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 8,721 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 10,813 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

How to setup yiic on WAMP (XP/Vista)

Created 8 years ago by krillzipTutorials3 comments – viewed 79,347 times – ( +3 / -1 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

Autocomplete in console command

Created 5 years ago by StammTutorials1 comment – viewed 10,019 times – ( +3 / -1 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

How to use bizRules in standard accessControl filter

Created 4 years ago by Maciej LiżewskiHow-tos8 comments – viewed 15,035 times – ( +3 / -1 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.