Video: Next steps

In addition to namespaces, there are a number of coding frameworks that contain dozens of design patterns and solutions for many common coding problems and needs. For an in-depth survey of four open source frameworks, I recommend MVC Frameworks for Building PHP Web Applications with Drew Falkman. Another course that I will recommend as a supplement and extension to the design patterns chapter is Foundations of Programming: Object-Oriented Design with Simon Allardice here in the Lynda.com Online Training Library. Offline, there are two books that are broadly considered as canonical sources of software design strategies. Design Patterns: Elements of Reusable Object-Oriented Software, published by Addison-Wesley, and Code Complete, the 2nd edition, from Microsoft Press. Finally, you may have noticed that one section of the demonstration was not completed, the save method of the Address class. There are many different ways to approach this problem. You could write a simple SQL query, and just write the contents to a table within that method. But does that scale? I recommend researching Gateway patterns along with Object-relational mapping as a starting point.

Whether you're enhancing or optimizing existing code or just starting from scratch, there's never a better time to start integrating object-oriented design techniques. This course shows how to integrate the principles of object-oriented programming into the build of a PHP-driven web page or application. After an overview of what objects and classes are and why they should be used, author Jon Peck dives into creating and instantiating objects, then defining the class relationships and interactions that will form the basis of your coding arsenal. The course also shows how to leverage PHP objects and implement design patterns, and looks at steps you can take to continue adding to your programming tool belt.

Topics include:

Historical overview of object-oriented PHP

Defining classes

Creating a method/object context with $this

Accessing classes without instantiation

Creating a database class

Extending and abstracting classes

Cloning and comparing objects

Error handling with exceptions

Implementing design patterns, such as the factory and strategy patterns

Next steps

In addition to namespaces, there are a number of coding frameworks that contain dozens of design patterns and solutions for many common coding problems and needs. For an in-depth survey of four open source frameworks, I recommend MVC Frameworks for Building PHP Web Applications with Drew Falkman. Another course that I will recommend as a supplement and extension to the design patterns chapter is Foundations of Programming: Object-Oriented Design with Simon Allardice here in the Lynda.com Online Training Library. Offline, there are two books that are broadly considered as canonical sources of software design strategies. Design Patterns: Elements of Reusable Object-Oriented Software, published by Addison-Wesley, and Code Complete, the 2nd edition, from Microsoft Press. Finally, you may have noticed that one section of the demonstration was not completed, the save method of the Address class. There are many different ways to approach this problem. You could write a simple SQL query, and just write the contents to a table within that method. But does that scale? I recommend researching Gateway patterns along with Object-relational mapping as a starting point.

Find answers to the most frequently asked questions about Object-Oriented Programming with PHP .

Here are the FAQs that matched your search "" :

Expand all | Collapse all

please wait ...

Q: I'm not seeing warnings or errors in my environment like the video; why not?

A: Your PHP configuration is probably configured not to show them to you. This is often true on commercial web hosts and is often the default. Fortunately, there are multiple ways of resolving this.

The easiest way would be to explicitly enable error reporting at the top of the PHP script you wish to debug.

error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1);

Alternatively, if you have access to your php.ini file and you want to always have error reporting on, change error_reporting = to a development friendly value of

error_reporting = E_ALL | E_STRICT

then change display_errors = to

display_errors = On

Finally, if access to the php.ini file is not available, you can add the following directives to your .htaccess or VirtualHost configuration for Apache:

php_value error_reporting 32767php_value display_errors 1

If you would like a development optimized development environment like the one utilized in this course, see Up and Running with Linux for PHP Developers, here in the lynda.com online training library.

Q: This course was updated on 4/10/2013. What changed?

A: The author rerecorded some of the tutorials to add more background information and better graphics.

Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Already a member ?

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships.
Learn more

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about lynda.com and our online training library:

new course releases

newsletter

general communications

special notices

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

new course releases

newsletter

general communications

special notices

Here’s our privacy policy with more details about how we handle your information.