Wiki articles

Showing 21-40 of 823 items.

thumbsgen and Kohana Image Library together (extends an extension)

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

In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

1 0
1 follower
Viewed: 11 194 times
Version: Unknown (update)
Category: How-tos

Widget Personalizado

Created 13 years ago by Cálcio, updated 10 years ago by Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
4 followers
Viewed: 11 256 times
Version: 1.1
Category: Tutorials

Logging to Heroku's logs from Yii

Created 12 years ago by aarondfrancis, updated 11 years ago by aarondfrancis.

In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.

1 0
1 follower
Viewed: 11 275 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 11 343 times
Version: 1.1
Category: How-tos

Entire Messages into javascript object

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

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 11 405 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

Created 11 years ago by Ahamed Rifaideen, updated 11 years ago by Ahamed Rifaideen.

hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.

1 0
1 follower
Viewed: 11 480 times
Version: 1.1
Category: How-tos

Cgridview counter column

Created 11 years ago by Nisanth thulasi, updated 11 years ago by trond.

some times we want to show the serialNo on cgridview .

4 0
8 followers
Viewed: 11 493 times
Version: Unknown (update)
Category: Tips

Search scenario (CGridView, etc.): avoid default values from database as search condition.

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

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 745 times
Version: 1.1
Category: Tips

How to nest DB transactions without actually nesting them.

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

To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.

1 0
1 follower
Viewed: 11 758 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 11 805 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

Mantis Manager: An Asset Manager that minifies, combines, and publishes

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

Hello everybody.

4 0
8 followers
Viewed: 11 921 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

Create URL to language switcher anchor with langhandler

Created 11 years ago by Anas AbuDayah, updated 11 years ago by Anas AbuDayah.

This topic is related with langhandler extension

1 1
2 followers
Viewed: 11 934 times
Version: 1.1
Category: Tips

using jqbargraph to create beautiful graphs

Created 12 years ago by MAHESH.E.U, updated 12 years ago by MAHESH.E.U.

If you are about to create a graph, the best option i would suggest is the jqbargraph.

5 0
9 followers
Viewed: 12 118 times
Version: 1.1
Category: Tips

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

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

in model add the following code:

3 0
3 followers
Viewed: 12 129 times
Version: 1.1
Category: Tips
Tags: rules

Set a menu - reusable code

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

As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

1 0
3 followers
Viewed: 12 132 times
Version: Unknown (update)
Category: Tips

Alternative wildcard characters CDbCriteria

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

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 12 154 times
Version: 1.1
Category: How-tos

CjuiDatepicker

Created 12 years ago by hiral darji, updated 12 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: 12 223 times
Version: 1.1
Category: Tips

Inline views, write less

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

Sometimes writing views like

3 0
3 followers
Viewed: 12 300 times
Version: Unknown (update)
Category: Tips

ePay Integration - Bulgarian Payment Provider

Created 12 years ago by yasen, updated 12 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: 12 332 times
Version: 1.1
Category: Tutorials
0 0
3 followers
Viewed: 12 384 times
Version: 2.0
Category: How-tos
Tags: