Class 9
Discussions
- Final project requirements
- Some CMSs for portfolio sites
- Intro to MVC architecture
- Intro to object-oriented programming
- Object-oriented programming in PHP
- Sessions in PHP
- Sanitizing user-generated content
- More about MySQL SELECT queries
- Paginating MySQL results using PHP
Examples
- Example installations of popular CMSs
- Simple MVC architecture example
- Last week’s assignment solution done in MVC style
- Object-oriented programming example
- Sanitizing user input using my Sanitize class
- Reading and writing session variables in PHP
- Paginating results from a MySQL query
- An example of an authentication system (i.e. log in, log out, sign up) using object-oriented coding, sessions, and databases
- An example of creating a simple mailing list using a database
- An example of validating user input using PHP’s built-in filter_ver() function
- Example of selecting only those rows from MySQL that match a particular date range
In-class assignment
Homework
- conceive and wireframe your final projects