Showing 241-260 of 652 items.

ePay Integration - Bulgarian Payment Provider

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 2 comments

} ` 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
Viewed: 14 810 times
Version: 1.1
Category: Tutorials

Load the Yii-Bootstrap Extension on Specific Actions

Created 13 years ago by chuntley chuntley, updated 13 years ago by chuntley chuntley. 5 comments

A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.

7 0
15
Viewed: 31 113 times
Version: 1.1
Category: How-tos

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 13 years ago by shulme shulme, updated 13 years ago by shulme shulme. 12 comments

Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

10 0
22
Viewed: 77 284 times
Version: 1.1
Category: How-tos

Multilanguage Lorem Ipsum Text Generator

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 2 comments

Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

2 0
1
Viewed: 14 860 times
Version: 1.1
Category: How-tos

Syncing sessions between Yii and KCFinder

Created 13 years ago by Thanasis Fotis Thanasis Fotis, updated 12 years ago by Boaz Boaz. 8 comments

>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...

1 0
6
Viewed: 19 775 times
Version: 1.1
Category: How-tos

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 13 years ago by Xgamer99 Xgamer99, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 3 comments

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7
Viewed: 25 201 times
Version: 1.1
Category: Tips