Wiki

Sorted by date (updated)X
Displaying 61-70 of 470 result(s).

Custom Login Error Messages

Updated 2 months ago by whoopassTutorials0 comments – viewed 5,635 times – ( +7 )
The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the Yii Blog Tutorial provides a how to in connecting that login authentication method to a database so you can run your logins against the registered users. Talk about sweet deal.

Adding a link to a CDataColumn

Updated 2 months ago by le_topTips4 comments – viewed 2,731 times – ( +3 )
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.

Drills : Search by a HAS_MANY relation

Updated 2 months ago by softarkTutorials9 comments – viewed 7,868 times – ( +20 )
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

The directory structure of the Yii project site

Updated 2 months ago by Yang HeOthers28 comments – viewed 67,216 times – ( +74 )
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 2 months ago by le_topTips0 comments – viewed 1,761 times – ( +3 )
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

Email function at Contact page

Updated 2 months ago by sarthakTutorials1 comment – viewed 2,321 times – ( +1 / -3 )
***note : only for linux users.
tags: email, contact, ssmtp

Configuring PhpStorm IDE for Yii

Updated 2 months ago by samdarkTips13 comments – viewed 42,321 times – ( +50 / -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 months ago by StagelineTips0 comments – viewed 3,014 times – ( +16 )
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Cookie management in Yii

Updated 3 months ago by resurtmHow-tos4 comments – viewed 43,158 times – ( +39 / -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 months ago by resurtmTutorials2 comments – viewed 26,410 times – ( +14 )
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