Wiki articles

Showing 221-240 of 650 items.

Adding a link to a CDataColumn

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

Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

2 0
8 followers
Viewed: 21 297 times
Version: 1.1
Category: Tips

Integrating HybridAuth directly into Yii without an extension

Created 6 years ago by biz dev, updated 6 years ago by biz dev.

This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

10 0
15 followers
Viewed: 45 357 times
Version: 1.1
Category: How-tos

Patching PHP code (used as a library) without changing the original code!

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

The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article [Redefine PHP class methods or class](http://stackoverflow.com/questions/137006/ph...

4 0
5 followers
Viewed: 8 844 times
Version: 1.1
Category: Tips

Fixing extensions without modifying their code

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

If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

6 0
10 followers
Viewed: 12 883 times
Version: 1.1
Category: Tips

Limit a CGridView field to some preset length.

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

Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

9 0
9 followers
Viewed: 16 722 times
Version: 1.1
Category: How-tos

PHPStorm & NetBeans autocomplete problem

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

The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

12 0
14 followers
Viewed: 17 879 times
Version: 1.1
Category: Tips

Extending an ActiveRecord model

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

protected $_viewFile

2 3
7 followers
Viewed: 22 995 times
Version: 1.1
Category: How-tos

Upload Files to Rackspace Cloud Files CDN

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

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 14 593 times
Version: 1.1
Category: Tutorials

Twitter Bootstrap style Breadcrumbs

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

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 24 175 times
Version: 1.1
Category: How-tos

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

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

After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

7 0
13 followers
Viewed: 51 282 times
Version: 1.1
Category: Tips

Using Bootstrap with LESS

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

I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular [bootstrap extension](http://ww...

11 0
15 followers
Viewed: 49 358 times
Version: 1.1
Category: How-tos

Kickstart development with Yii-App

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

I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use...

14 0
41 followers
Viewed: 36 054 times
Version: 1.1
Category: How-tos

Turn Web HTML Into Newsletter

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

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9 followers
Viewed: 13 848 times
Version: 1.1
Category: How-tos

Handling Bootstrap active tabs in Yii via URL

Created 6 years ago by JamesBarnsley, updated 3 years ago by JamesBarnsley.

I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to...

3 0
7 followers
Viewed: 33 086 times
Version: 1.1
Category: How-tos

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

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

Create param.php file in protected/config

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

1 4
3 followers
Viewed: 11 373 times
Version: 1.1
Category: Tutorials
Tags:

Upload CSV File

Created 6 years ago by bhavesh vaghela, updated 5 years ago by bhavesh vaghela.

View file

3 0
10 followers
Viewed: 24 575 times
Version: 1.1
Category: Tutorials
Tags:

Creating HTML code using Jamboree Panels

Created 6 years ago by bluyell, updated 6 years ago by bluyell.
2 0
2 followers
Viewed: 12 661 times
Version: 1.1
Category: Tutorials

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: 9 199 times
Version: 1.1
Category: Tutorials

jQuery UI Datepicker

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

We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

5 0
12 followers
Viewed: 86 821 times
Version: 1.1
Category: How-tos