Wiki

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

Add information to Yii::app()->user by extending CWebUser (better version)

Created 4 years ago by emixTutorials5 comments – viewed 30,279 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

Integrating FirePHP

Created 4 years ago by ricardogranaTutorials5 comments – viewed 11,907 times – ( +8 ) – version 1.1
Install Firebug plugin for Firefox from here.

Simple way to use AutoComplete using different ID and Display Value

Created 2 years ago by raheelk2kTutorials5 comments – viewed 21,117 times – ( +10 ) – version 1.1
Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

Saving CGridView filter

Created about a year ago by sefburhanTutorials5 comments – viewed 5,709 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 24,435 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 19,318 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.

shortcut/usefull access roles methods RBAC

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials5 comments – viewed 3,517 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 2 years ago by nlacTutorials5 comments – viewed 37,151 times – ( +8 / -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 10 months ago by sirin kTutorials5 comments – viewed 39,299 times – ( +5 ) – 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 2 years ago by Rajith RTutorials5 comments – viewed 11,894 times – ( +11 / -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.