The Identity Class
Thursday, November 25, 2010

In my previous post about creating an authentication class, I made use of another class, called Application_Model_Identity, to store the details of the user, who has logged in. In this post, I intended to look at some of the things that can be done with such a class, drawing on some of the applications that I have developed myself. (more…)

Posted by James at 7:30 pm   0 comments

The Authentication Class
Sunday, November 21, 2010

I prefer to encapsulate the code for logging in and out in a class. In the example I am using for this series of posts, the class is called Application_Model_Login. We have already seen in this post how it is used in the Login Controller. (more…)

Posted by James at 7:07 pm   4 comments

Creating a Datestamped Log File using the Standard Log Resource Plugin
Wednesday, March 10, 2010

In a previous post, I looked at creating a custom resource plugin to create a logger. Since I wrote that code, a standard resource plugin to perform this function has been created. At first sight the standard plugin is inferior, in that the custom plugin allows for the insertion of a date into the log filename, which allows a new log to be created every day, while the standard plugin requires a fixed filename specified in the configuration file. However, I have worked out a simple mechanism for adding a date stamp to the filename, which I shall share in this article. (more…)

Posted by James at 11:40 pm   2 comments

Bootstrapping the Application: a Custom Log Resource Plugin
Monday, September 28, 2009

So far, we have been looking at how to use several of the standard resource plugins that come with Zend_Application in order to initialise application resources. It is possible, indeed encouraged, to create your own custom resource plugins to handle the initialisation of resources that fall outside their scope. (more…)

Posted by James at 9:57 am   1 comment