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...

Yii CreatUrl not returning the full URL

You just can’t seem to get the URL that you expect and all the forums say just call createUrl and it’ll do everything for you! Na-ugh! Wrong!  It’s returning just the action – or the controller/action but not the module. First First check...

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...

Cook your own User Authentication in Yii – Part 2

In Cook your own User Authentication in Yii – Part 1 , we saw how to over-ride the CUserIdentity class to implement our own user validation against a database table. In this tutorial, we will see how to use the CWebUser class to load the user details into the...