Fresh PHP news, tutorials, tips and much more

Posts Tagged ‘example’

ZF example part 9: Exploring Zend_View and Displaying Blog Entries

Wednesday, May 28th, 2008

Just noticed that new part of biggest tutorial of Zend Framework was launched some time ago. In this part author shows how to display blog entries.

With the release of Zend Framework 1.5, the Zend_View component received a long overdue boost in its functionality. It is now no longer a simple template engine, but a powerhouse of features intent on making the dynamic generation of a View as simple and as flexible as possible. This update introduced a few new concepts along with existing ones which form the backbone of the changes. The main ones are as follows:

How usual code snippets are detailed and commented so code reading is very easy.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »

www vs no-www and cookies

Thursday, May 15th, 2008

Very good article of using cookies with domains including www and without it. Why it is important  to use or not to use cookies, and some grate tips you would find in this post.

One of Yahoo’s performance rules says: Use cookie-free domains for static components. This is good because the server has no use for cookie information when serving a JPEG or another static component, so all this cookie information creates network traffic for no reason.

Like usually good article with some examples and code snippets.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

User registration form

Wednesday, May 14th, 2008

Nice article for PHP beginners to design and code user registration form. In this tutorial author shows how you can fast create user registration for your web application.

For any real application though, that won’t work and we require a “New User Registration’ system. That’s what we are going tot create in this post.

In this tutorial you would find code examples, good commented source. Looks like this tutorial is one of tutorial series. Great job from author.

Post tagged with: , , ,

Posted in Beginners | No Comments »

ZF example application part7: Authorisation with Zend_Acl and Revised Styling

Tuesday, May 13th, 2008

New and very useful part of great Zend Framework application example has landed. In this part author shows how to make authorization module for Zend Framework application and how to style it.

Today’s entry concerns authorisation. We previously covered how to authenticate an author to the blog, but we still have nothing ensuring only authenticated authors can access the new Administration Module. This is the domain of Zend_Acl, an implementation of an Access Control List system which limits access to resources by the roles assigned to a user.

How usual you would find full source code and SVN repositories.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »