Wiki articles in category Tutorials

Showing 61-80 of 221 items.

Define general array and variable and call it to anywhere in application

Created 13 years ago by bhavesh vaghela bhavesh vaghela, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

Create param.php file in protected/config

Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active

1 4
3 followers
Viewed: 15 620 times
Version: 1.1
Category: Tutorials
Tags:

Upload CSV File

Created 13 years ago by bhavesh vaghela bhavesh vaghela, updated 11 years ago by bhavesh vaghela bhavesh vaghela.

View file

3 0
10 followers
Viewed: 34 793 times
Version: 1.1
Category: Tutorials
Tags:

Creating HTML code using Jamboree Panels

Created 13 years ago by bluyell bluyell, updated 13 years ago by bluyell bluyell.
2 0
2 followers
Viewed: 19 361 times
Version: 1.1
Category: Tutorials

ePay Integration - Bulgarian Payment Provider

Created 13 years ago by yasen yasen, updated 13 years ago by yasen 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: 13 656 times
Version: 1.1
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 13 years ago by softark softark, updated 7 years ago by softark 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: 83 852 times
Version: 1.1
Category: Tutorials

Use crypt() for password storage

Created 13 years ago by fsb fsb, updated 11 years ago by fsb 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
20 followers
Viewed: 186 743 times
Version: 1.1
Category: Tutorials

Installing Yii Users and Rights to Newly Created Yii app

Created 13 years ago by Rajith R Rajith R, updated 12 years ago by Rajith R 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.

11 1
40 followers
Viewed: 113 406 times
Version: 1.1
Category: Tutorials

How to display static pages in Yii with database content?

Created 13 years ago by yasen yasen, updated 13 years ago by yasen 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: 45 616 times
Version: 1.1
Category: Tutorials

Creating Yii applications with composer

Created 13 years ago by schmunk schmunk, updated 13 years ago by SleepWalker 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: 121 193 times
Version: 1.1
Category: Tutorials

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

Created 13 years ago by bennouna bennouna, updated 12 years ago by bennouna 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: 21 439 times
Version: 1.1
Category: Tutorials

Ajax form submiting in Yii

Created 13 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 173 641 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

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

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

Intro

17 0
41 followers
Viewed: 78 845 times
Version: 1.1
Category: Tutorials

CGridView, CListView and CActiveDataProvider

Created 13 years ago by softark softark, updated 12 years ago by softark 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: 149 863 times
Version: 1.1
Category: Tutorials

Facebook DeAuthorize callback URL and its response data.

Created 13 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 29 554 times
Version: 1.1
Category: Tutorials
Tags: facebook

Create Yii Project In Cloud9

Created 13 years ago by Ben Ben, updated 13 years ago by Ben 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: 41 836 times
Version: 1.1
Category: Tutorials

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 46 190 times
Version: 1.1
Category: Tutorials

Create image thumbnails with php_img_preview

Created 13 years ago by Anas AbuDayah Anas AbuDayah, updated 11 years ago by Anas AbuDayah 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.

4 0
9 followers
Viewed: 26 308 times
Version: 1.1
Category: Tutorials
Tags: images, views

Simple way to use AutoComplete using different ID and Display Value

Created 13 years ago by raheelk2k raheelk2k, updated 13 years ago by raheelk2k 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: 66 255 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

Created 13 years ago by c@cba c@cba, updated 13 years ago by c@cba 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
16 followers
Viewed: 92 928 times
Version: 1.1
Category: Tutorials

Auto set model fields values

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

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

5 0
11 followers
Viewed: 33 841 times
Version: 1.1
Category: Tutorials