Wiki

Sorted by date (updated)X
Displaying 421-430 of 771 result(s).

Adding a link to a CDataColumn

Updated 3 years ago by le_topTips6 comments – viewed 14,403 times – ( +3 ) – version 1.1
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.

The directory structure of the Yii project site

Updated 3 years ago by Yang HeOthers42 comments – viewed 155,645 times – ( +86 ) – version 1.1
In this article, we describe the directory structure used by yiiframework.com - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

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

Updated 3 years ago by le_topTips0 comments – viewed 5,640 times – ( +5 ) – version 1.1
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 giving me a head start to do what I wanted: patching third party code without touching the original to allow easy upgrades.
tags: patch, patching

Configuring PhpStorm IDE for Yii

Updated 3 years ago by samdarkTips20 comments – viewed 107,121 times – ( +66 / -1 ) – version 1.1
In order to be able to get from render or renderPartial to the view, from widget to widget class, from relations to model classes you need to install additional plugin called YiiStorm.
tags: IDE, PhpStorm

PHPStorm & NetBeans autocomplete problem

Updated 3 years ago by StagelineTips3 comments – viewed 12,081 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Cookie management in Yii

Updated 3 years ago by resurtmHow-tos5 comments – viewed 126,015 times – ( +43 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

How to display static pages in Yii?

Updated 3 years ago by resurtmTutorials2 comments – viewed 58,114 times – ( +19 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

Yii registry, how to use it, does it exist at all?

Updated 3 years ago by resurtmHow-tos2 comments – viewed 23,065 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

Extending an ActiveRecord model

Updated 3 years ago by BogseyHow-tos3 comments – viewed 15,569 times – ( +2 / -3 ) – version 1.1
Introduction

Upload Files to Rackspace Cloud Files CDN

Updated 3 years ago by StephenMiracleTutorials0 comments – viewed 10,622 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/