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

Members

Once our site has a few members, we need to be able to view and search for members, so that we can connect and communicate with them. Let's look at creating a member list and basic member search.

We will do this by creating a model and a controller for members. The model should be a class Members, and saved as members.php in the models folder, and the controller should be a class Memberscontroller saved as controller.php in the controllers/members folder.

Listing users

User lists have a limitation with large social networks—they end up being large lists of users that are irrelevant to the user viewing the list. This can be overcome by listing a subset of users; for instance, those in a particular group, contact sphere, or network. For example, ...

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