Wiki articles in category Tutorials

Showing 121-140 of 219 items.

Understanding Autoloading, Helper Classes and Helper Functions

Created 13 years ago by Steve Friedl, updated 12 years ago by GOsha.

Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

22 0
26 followers
Viewed: 122 391 times
Version: 1.1
Category: Tutorials

Save or Update Multiple related model values in one Tabular input form

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

1 0
1 follower
Viewed: 40 100 times
Version: 1.1
Category: Tutorials

CRUD operation in Yii framework

Created 9 years ago by Mohammad Fareed, updated 5 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 32 484 times
Version: 1.1
Category: Tutorials

How to display data from two tables in TbGridView using DataProvider?

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

0 0
5 followers
Viewed: 28 239 times
Version: 1.1
Category: Tutorials

How to display Dependent drop-down value using ajax call with dynamically

Created 9 years ago by Ankit Modi, updated 5 years ago by samdark.

Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.

1 1
6 followers
Viewed: 49 733 times
Version: 1.1
Category: Tutorials

Using CAutoComplete to display one value and submit another

Created 15 years ago by luoshiben, updated 11 years ago by mohammad sharif ahrari.

Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...

7 3
11 followers
Viewed: 64 415 times
Version: 1.1
Category: Tutorials

Secure password hash storage and a Yii helper extension

Created 12 years ago by fsb, updated 10 years ago by fsb.

This wiki has been replaced by Use crypt() for password storage.

13 0
13 followers
Viewed: 38 641 times
Version: 1.1
Category: Tutorials

Front-end developer's guide

Created 12 years ago by jonah, updated 12 years ago by waitekk.

This wiki is a work in progress.

10 0
19 followers
Viewed: 40 573 times
Version: 1.1
Category: Tutorials

Manage application configuration in different modes

Created 14 years ago by qiang, updated 12 years ago by 张 迪.

Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...

15 0
15 followers
Viewed: 67 852 times
Version: 1.1
Category: Tutorials

Adding login form to each page

Created 14 years ago by pestaa, updated 11 years ago by Yang He.

After adding proper form to the main layout, like:

3 1
7 followers
Viewed: 49 441 times
Version: 1.1
Category: Tutorials

How to add ajax-loading indicators

Created 14 years ago by schmunk, updated 11 years ago by Yang He.

With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.

23 0
25 followers
Viewed: 75 681 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Tabular Input, Validating and Saving related models

Created 10 years ago by Xavier John, updated 9 years ago by hasanavi.

This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

4 0
16 followers
Viewed: 42 824 times
Version: 1.1
Category: Tutorials

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 12 years ago by marcanuy, updated 12 years ago by marcanuy.

I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

16 0
12 followers
Viewed: 41 208 times
Version: 1.1
Category: Tutorials

Simplified meta tags

Created 14 years ago by Y!!, updated 13 years ago by Y!!.

If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

13 0
17 followers
Viewed: 55 752 times
Version: 1.1
Category: Tutorials
Tags:

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 14 years ago by thyseus, updated 13 years ago by Orteko.

p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.

12 2
15 followers
Viewed: 95 173 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by emix, updated 10 years ago by Anas AbuDayah.

I found a better solution.

5 0
10 followers
Viewed: 49 356 times
Version: 1.1
Category: Tutorials
Tags: rbac, user, Yii

Integrating FirePHP

Created 13 years ago by ricardograna, updated 13 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 18 022 times
Version: 1.1
Category: Tutorials
Tags:

Simple way to use AutoComplete using different ID and Display Value

Created 11 years ago by raheelk2k, updated 11 years ago by raheelk2k.

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.

6 0
13 followers
Viewed: 62 735 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 10 years ago by sefburhan, updated 10 years ago by CeBe.

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

1 0
31 followers
Viewed: 13 411 times
Version: 1.1
Category: Tutorials

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

Created 11 years ago by bluezed, updated 11 years ago by bluezed.

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 43 366 times
Version: 1.1
Category: Tutorials