Articles in Category: yii

Using UTF-8 and libXML

As you can guess from the title, this is not a really a Yii based article. Recently, I spent a few frustrating hours trying to get some data loaded through libXML using simplexml_load_string with various odd parsing errors like: [snippet id=199]It's not UTF-8 As a European, I use UTF-8 all the time

[more...]

Separation of admin controllers from public controllers

There are a number of posts and Wiki's on this subject and I love all the discussions and frays that you get on the Yii Framework forum. One of the popular methods is to move your Admin functions into a module, but for me this can lead to confusion and duplication, maybe with views and controller functions

[more...]

Beginning Yii

Learn the Yii framework in minutes Beginning Yii ... I'm very excited about a new Yii Training course that has just been published. The course is designed for anyone wanting to learn Yii, whether new to frameworks or converting from another

[more...]

Cook your own User Authentication in Yii - Part 3

This is the last but one in a series of 4 tutorials demonstrating how to implement a simple role based user administration system in Yii. The first two parts can be found here; user authentication - part 1 and user authentication - part 2 Previously We've update the the UserIdentity class which was originally generated by Gii, to add database authentication

[more...]

Yii - more Advanced Logging

Yii uses an application component called CLogRouter to determine where and how log messages are output to the various logs. You can configure different "log routes" depending on the log trace level, the log category (more on that later) and even your IP address

[more...]