“Effortless E-Commerce with PHP and MySQL” Book Available Online
My forthcoming “Effortless E-Commerce with PHP and MySQL” book is now available to read via Safari Books Online. Through the Rough Cuts series, you can read this book as I write it, and even provide feedback that could affect the final text. I just completed Chapter 9, which means there are two more chapters left in the third part of the book. It looks like Part IV of the book will have two chapters as well. I’m hoping to wrap up the first draft of the book over the next two weeks.
First Example from “Effortless E-commerce with PHP and MySQL” Online
For those of you interested in my forthcoming “Effortless E-commerce with PHP and MySQL” book, you can now look at the first example site at http://ecom1.dmcinsights.com. This project is covered in Part II of the book (four chapters total) and demonstrates:
- Selling access to content (i.e., selling virtual products)
- User management
- Content management via administrative pages
- Using PayPal’s Website Payments Standard system
There are instructions on the site for how you can access it and you can even download all the source code. There’s a form on every page through which you can ask questions or post comments. I welcome any and all feedback you may have!
I’m currently developing the second example site now, and will also make that publicly available when it’s ready. Thanks!
Handling Related Models in Yii Forms
Normally two Models in an MVC architecture are related to each other, such as Employees and Departments (to use the classic example), where each employee is in one department and each department has multiple employees. Although Yii does a great job of auto-generating most of the code you need, including the form used to create and update a Model, the Yii-generated form won’t properly represent the related Model. In this post I’ll walk you through what you need to do to make your forms work properly for related Models. (continue reading…)