Sorted by date (updated)X
Displaying 351-360 of 715 result(s).

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

Updated about a year ago by le_topTips0 comments – viewed 3,791 times – ( +4 ) – 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 about a year ago by samdarkTips20 comments – viewed 79,720 times – ( +65 / -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 about a year ago by StagelineTips1 comment – viewed 8,328 times – ( +22 ) – 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 about a year ago by resurtmHow-tos5 comments – viewed 91,620 times – ( +41 / -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 about a year ago by resurtmTutorials2 comments – viewed 47,672 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 about a year ago by resurtmHow-tos2 comments – viewed 18,351 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

Extending an ActiveRecord model

Updated about a year ago by BogseyHow-tos3 comments – viewed 11,395 times – ( +2 / -3 ) – version 1.1

Upload Files to Rackspace Cloud Files CDN

Updated about a year ago by StephenMiracleTutorials0 comments – viewed 7,574 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension:

How to access a component of a module from within the module itself

Updated about a year ago by Roman SolomatinTutorials3 comments – viewed 21,512 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

Understanding Scenarios

Updated about a year ago by Luke JurgsTutorials11 comments – viewed 81,586 times – ( +29 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.