Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 91-100 of 237 result(s).

Saving CGridView filter

Created about a year ago by sefburhanTutorials5 comments – viewed 5,126 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 2 years ago by bluezedTutorials5 comments – viewed 22,197 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Create Yii Project In Cloud9

Created 2 years ago by BenTutorials5 comments – viewed 17,198 times – ( +3 ) – version 1.1
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

How to display static pages in Yii with database content?

Created 2 years ago by yasenTutorials5 comments – viewed 21,387 times – ( +11 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

Impersonate Users within Yii Framework

Created 3 years ago by WoilTutorials5 comments – viewed 13,398 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

shortcut/usefull access roles methods RBAC

Created 9 months ago by Kostas Apazidis (KonApaz)Tutorials5 comments – viewed 2,729 times – ( +1 ) – version 1.1
These are functions that I used very often, may helps you!

A simple way to get Yii client-side form validation run when submitting by ajax

Created about a year ago by nlacTutorials5 comments – viewed 32,763 times – ( +6 / -2 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Building a REST API in Yii2.0

Created 5 months ago by sirin kTutorials5 comments – viewed 19,257 times – ( +4 ) – version 2.0
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
tags: yii2.0, REST API

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 10,589 times – ( +10 / -10 ) – 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 customize the error message of a validation rule

Created 6 years ago by qiangTutorials4 comments – viewed 66,809 times – ( +17 / -1 ) – version 1.1
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one: