Wiki articles

Showing 61-80 of 804 items.

ePay Integration - Bulgarian Payment Provider

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

Making a CGridView to keep the selection between page changes

Created 6 years ago by bluyell, updated 6 years ago by CeBe.

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 9 518 times
Version: 1.1
Category: Tutorials

Multilanguage Lorem Ipsum Text Generator

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

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 follower
Viewed: 9 555 times
Version: 1.1
Category: How-tos

Using PayPal IPN with Yii2

Created 5 years ago by darioo, updated 5 years ago by darioo.

I'm using PayPal's script from

0 0
1 follower
Viewed: 9 559 times
Version: 2.0
Category: Tips

Caching strategy

Created 6 years ago by darkheir, updated 6 years ago by CeBe.

Note: Before reading this wiki you should have read the caching part in the Yii guide

3 1
12 followers
Viewed: 9 570 times
Version: 1.1
Category: How-tos

A simple widget - jump2link

Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

namespace app\components;

0 0
1 follower
Viewed: 9 622 times
Version: 2.0
Category: Tutorials

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 6 years ago by Luis Lobo Borobia, updated 3 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 9 626 times
Version: all
Category: Tips

CjuiDatepicker

Created 7 years ago by hiral darji, updated 7 years ago by hiral darji.

If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5 followers
Viewed: 9 667 times
Version: 1.1
Category: Tips

an easy way to required multi columns(At least one cannot be blank)

Created 8 years ago by 1065227709, updated 8 years ago by 1065227709.

in model add the following code:

3 0
3 followers
Viewed: 9 683 times
Version: 1.1
Category: Tips
Tags: rules

MySQL migration environment

Created 4 years ago by Fabrizio Caldarelli, updated 4 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 9 696 times
Version: 2.0
Category: How-tos

Gettext and Poedit HOWTO

Created 5 years ago by Maug Lee, updated 5 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 9 798 times
Version: 1.1
Category: Tutorials
0 0
3 followers
Viewed: 9 818 times
Version: 2.0
Category: How-tos
Tags:

How to add an analogue clock widget on your skeleton application

Created 9 years ago by mocapapa, updated 9 years ago by mocapapa.


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 9 830 times
Version: 1.1
Category: Tutorials
Tags:

Yii Rights Management Tips

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

yii rights some tips..

2 0
4 followers
Viewed: 9 861 times
Version: 1.1
Category: Tips

Implementing menu items with progress (wait) dialog

Created 7 years ago by Trejder, updated 7 years ago by Trejder.

This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

1 0
1 follower
Viewed: 9 868 times
Version: 1.1
Category: How-tos

An alternative way to ElasticSearch

Created a year ago by Necip, updated a year ago by Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 9 870 times
Version: all
Category: How-tos

Relation scope to test existence of related records ("EXISTS")

Created 5 years ago by le_top, updated 5 years ago by le_top.

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 9 886 times
Version: 1.1
Category: How-tos

Reading the doc

Created 9 years ago by zaccaria, updated 9 years ago by Orteko.

Almost all the information you need whilst working with yii is written in the Class Reference.

21 0
3 followers
Viewed: 9 888 times
Version: 1.1
Category: Tips
Tags: doc

embed a view file of the class which implement the CAction.

Created 9 years ago by Davidhhuan, updated 9 years ago by Davidhhuan.

In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...

1 1
2 followers
Viewed: 9 933 times
Version: 1.1
Category: Tutorials

Create thermometer using rgraph

Created 6 years ago by Ankit Modi, updated 6 years ago by Ankit Modi.

Hi friends,

2 0
4 followers
Viewed: 9 937 times
Version: Unknown (update)
Category: Tips