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

Extending the profiles

With new database tables, status forms, and models in place for the new status types of Dino Space, we need to extend our profiles to save these new statuses, and also to include the information from these additional tables in the profile's statuses. We already have provisions for including different templates depending on the type of the status (as per Chapter 6), so we just need to alter our status stream query.

Processing the new status posts

In our profile statuses controller (controllers/profile/profilestatusescontroller.php) in the addStatus method, in the two instances where we construct the status object, we instead need to check which type of status is being posted, and if it is a different status type, we must also ...

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