O'Reilly logo

PHP 5 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A group

With an idea of what our group needs to do, the information it needs to contain, and how it will work, let's now create the functionality. This, as with other features, will involve creation of a model, a controller, and a series of template files to form the view.

Discussion

In order to facilitate communication and collaboration, groups require some new functionality that we don't yet have in Dino Space—discussion forum style topics. Let's create models for topics and discussion forum posts. Initially, we will tie these with groups; however, it would be easy for us to extend them to other areas of the social network should we wish.

We won't create controllers at this stage, as topics (for now) will only be accessed via groups. So either ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required