Wiki articles in category Tutorials

Showing 101-120 of 258 items.

ePay Integration - Bulgarian Payment Provider

Created 6 years ago by yasen, updated 6 years ago by yasen.

} ` V. The Order model would start with:

class Order extends CActiveRecord
{
	const STATUS_INITIATED = 1;
	const STATUS_CANCELED = 2;
	const STATUS_EXPIRED = 3;
	const STATUS_PAID = 4;
	public $statuses = array(
		self::STATUS_INITIATED => 'Initiated',
		self::STATUS_CANCELED => 'Canceled',
		self::STATUS_EXPIRED => 'Expired',
		self::STATUS_PAID => 'Paid',
	);
// more cod...
6 0
5 followers
Viewed: 8 945 times
Version: 1.1
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 6 years ago by softark, updated 8 months ago by softark.

Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

22 0
27 followers
Viewed: 57 001 times
Version: 1.1
Category: Tutorials

Use crypt() for password storage

Created 6 years ago by fsb, updated 4 years ago by fsb.

Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

15 0
21 followers
Viewed: 110 927 times
Version: 1.1
Category: Tutorials

Installing Yii Users and Rights to Newly Created Yii app

Created 6 years ago by Rajith R, updated 5 years ago by Rajith R.

After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

10 1
40 followers
Viewed: 95 711 times
Version: 1.1
Category: Tutorials

How to display static pages in Yii with database content?

Created 6 years ago by yasen, updated 6 years ago by yasen.

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:

3 0
13 followers
Viewed: 33 564 times
Version: 1.1
Category: Tutorials

Creating Yii applications with composer

Created 6 years ago by schmunk, updated 6 years ago by SleepWalker.

When creating web-application projects, you can add a great variety of different extensions, modules, plugins or scripts to your code-base. But maintaining a stable combination and updating certain packages can become a hard task.

27 0
32 followers
Viewed: 98 505 times
Version: 1.1
Category: Tutorials

Catching bounce messages (NDR) and piping them to a Yii command

Created 6 years ago by bennouna, updated 5 years ago by bennouna.

But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.

1 0
7 followers
Viewed: 11 521 times
Version: 1.1
Category: Tutorials

Ajax form submiting in Yii

Created 6 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

4 3
23 followers
Viewed: 149 396 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 6 years ago by yJeroen, updated 6 years ago by yJeroen.

This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Intro

16 0
41 followers
Viewed: 65 809 times
Version: 1.1
Category: Tutorials

CGridView, CListView and CActiveDataProvider

Created 6 years ago by softark, updated 5 years ago by softark.

CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

26 0
33 followers
Viewed: 131 108 times
Version: 1.1
Category: Tutorials

Facebook DeAuthorize callback URL and its response data.

Created 6 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.

3 0
6 followers
Viewed: 16 732 times
Version: 1.1
Category: Tutorials
Tags: facebook

Create Yii Project In Cloud9

Created 6 years ago by Ben, updated 6 years ago by Ben.

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.

2 0
5 followers
Viewed: 30 469 times
Version: 1.1
Category: Tutorials

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 38 187 times
Version: 1.1
Category: Tutorials

Create image thumbnails with php_img_preview

Created 6 years ago by Anas AbuDayah, updated 5 years ago by Anas AbuDayah.

This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.

3 0
9 followers
Viewed: 18 703 times
Version: 1.1
Category: Tutorials
Tags: images, views

Simple way to use AutoComplete using different ID and Display Value

Created 6 years ago by raheelk2k, updated 6 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: 30 443 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

Created 6 years ago by c@cba, updated 6 years ago by c@cba.

By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

4 0
17 followers
Viewed: 66 145 times
Version: 1.1
Category: Tutorials

Auto set model fields values

Created 6 years ago by vibhaJadwani, updated 6 years ago by vibhaJadwani.

This is a tutorial for how to auto set model values without any code.

5 0
11 followers
Viewed: 24 451 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

Created 6 years ago by vibhaJadwani, updated 6 years ago by vibhaJadwani.

This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

21 1
41 followers
Viewed: 83 229 times
Version: 1.1
Category: Tutorials

How to setup CKeditor

Created 6 years ago by Dark-Sun, updated 6 years ago by Dark-Sun.

To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)

3 0
8 followers
Viewed: 29 200 times
Version: 1.1
Category: Tutorials

Working with radiobutton list

Created 6 years ago by vibhaJadwani, updated 6 years ago by vibhaJadwani.

This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

9 0
10 followers
Viewed: 64 699 times
Version: 1.1
Category: Tutorials