PHP PDO, Custom Exception Handler, Namespaces for E-commerce
4.7 (14 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
97 students enrolled
Wishlisted Wishlist

Please confirm that you want to add PHP PDO, Custom Exception Handler, Namespaces for E-commerce to your Wishlist.

Add to Wishlist

PHP PDO, Custom Exception Handler, Namespaces for E-commerce

New PDO Database class wrapper, Custom Exception Handler and use of Namespaces (3rd add-on for E-commerce series)
4.7 (14 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
97 students enrolled
Last updated 8/2013
English
Price: $45
30-Day Money-Back Guarantee
Includes:
  • 6 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Upgrade database class to use PHP PDO
  • Learn what are namespaces and how to use them with out system
  • Create custom Exception handler to deal with any uncaught exceptions thrown by the system
  • Replace PHPMailer with Zend Framework 2 Mail component
View Curriculum
Requirements
  • Because we will be using features such as namespacing, you will have to make sure that your web hosting supports PHP version 5.3 +
  • Standard PHP web hosting environment with php, mysql and php PDO class enabled.
Description

This is the 3rd add-on series to our main E-commerce website with PHP, MySQL jQuery and PayPal course.

In this series we will convert our old database class to the new, PDO wrapper class with all necessary methods to run our system using prepared statements and transaction methods to perform more complex operations.

We will also create a Custom Exception Handler for those exceptions, which haven't been caught within the try / catch statement. The Exception Handler will display a different message based on whether the site is in the production or development environment - to ensure that our visitors don't see any sensitive information should any accidental exception be thrown while they are browsing our online shop.

We will make use of the namespaces - introduced in PHP 5.3 in order to distinguish between our core classes and any external libraries we might add to the system.

We will replace the previously used PHPMailer with the Zend Framework 2 Mail component. This will give you a good understanding of how useful namespaces are when working with different libraries.

Associated titles:

Buy whole series and save money

Who is the target audience?
  • Anyone who previously completed the main course and the first 2 add-on series
  • Anyone who wish to learn about the topics included in the description
  • Previous PHP knowledge is required on the basic / intermediate level
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 147 Lectures Collapse All 147 Lectures 06:02:15
+
Introduction
1 Lecture 02:36
+
Configuration
10 Lectures 31:30




Namespaces overview
04:43

New constants and include path
05:35

Core class
01:59

Currency class
04:41

Process method
02:46

Display currency
02:58
+
Email class
4 Lectures 11:59
Zend Mail and new properties
04:03

Constructor
03:44

Message and send
02:55

MimePart and MimeMessage
01:17
+
New Database class
24 Lectures 01:07:02
Properties and constructor
04:26

Connect method
01:51

Set connection
03:15

Exception format
02:28

Query method
04:07

Input filter
03:45

Execute and error exception
03:06

Fetch mode and lastInsertId
01:44

Fetch all
02:20

Fetch single record
01:27

Execute method
01:32

Insert array
02:21

Update array
01:40

Insert method
02:49

Update method
05:30

Delete method
02:56

Select single record
03:01

Begin transaction
02:45

Commit and Rollback
02:43

Insert transaction
02:37

Update transaction
03:12

Delete transaction
01:08

Get and select transaction
02:20

MySQL extension
03:59
+
Custom Exception Handler
2 Lectures 09:22
Exception class
05:47

Set exception handler
03:35
+
Other classes
48 Lectures 02:13:25
Url class
00:44

Abstract Application class
04:58

Business class
01:29

Country class
02:57

Paging class
02:07

Catalogue class
03:50

Add category
03:36

Update category
02:19

Remove category, get, add and update product
03:23

Remove product and duplicate
01:57

Admin class
03:38

User class
02:57

Add user
02:05

Get and remove user
04:03

Login class
03:39

Upload class
03:17

Validation class
04:10

PayPal class
02:23

Basket class
03:35

Sub total, weight and final shipping properties
02:07

Other final properties
02:50

Private methods
02:58

Order class
03:38

Create order
02:39

Order array
03:12

Shipping address
02:47

Transaction
05:45

Redundant method
01:17

Get order
00:41

Approve method
05:24

Get orders, status and update
05:05

Shipping class
02:41

Remove type transaction
02:13

Update and set default transaction
03:34

Duplicate type transaction
03:02

Duplicate type transaction (part 2)
01:33

Get zone and shipping by type zone
02:06

Local duplicate
01:46

Add shipping and shipping by id type zone
04:18

Remove shipping and shipping by type country
02:21

International duplicate
01:39

Shipping by id, type and country
01:25

Add, remove, update zone and get post code
02:41

Duplicate, add and remove post code
01:05

Shipping options
03:01

Get zone and default
01:05

Get shipping
02:30

Form, Plugin, Session, Navigation and Helper classes
00:55
+
Front structure
14 Lectures 26:26
Header
02:39

Left basket plugin
02:55

Left basket ajax call
00:57

Catalogue page
01:28

Product page
01:23

Activate and Basket
01:39

Basket view plugin
02:12

Checkout
01:34

Invoice
02:36

IPN and Logout
00:43

Login
01:57

My orders page
00:54

Return
01:39

Summary page
03:50
+
Ajax files
8 Lectures 25:43
Mod file
04:39

Basket
02:09

Basket Qty
05:35

Basket Qty (part 2)
02:33

Basket remove
03:11

PayPal
03:35

Resend
01:29

Summary update
02:32
+
JavaScript
6 Lectures 15:10
Object files
03:50

Replace values method
03:01

System object is empty
01:26

Basket object amendments
02:05

Basket object amendments (part 2)
03:07

Basket object amendments (part 3)
01:41
+
Control panel
29 Lectures 37:58
Header
01:28

Index
01:22

Logout and Business
01:00

Categories, Clients and Country
01:42

Orders, Products, Shipping and Zones
02:30

Edit business
01:26

Add category
00:56

Edit category
00:48

List and remove category
00:54

Edit, list and remove client
01:40

Activate and add country
01:29

List, remove and update country
01:03

Edit order
02:02

Order invoice
01:40

List and remove order
00:57

Add product
01:26

Edit product
01:14

List and remove product
00:46

Activate and add shipping
01:20

Default, duplicate, list, rates, remove, sort and update shipping
01:52

Add international rate
01:12

List and remove international rate
01:06

Add local rate
01:18

List and remove local rate
01:09

Add zone
00:53

Codes, list, remove and update zone
01:00

Add, list and remove post codes
01:19

Admin plugins
01:48

Review
00:38
1 More Section
About the Instructor
Sebastian Sulinski
4.3 Average rating
193 Reviews
1,141 Students
13 Courses
Founder of SSD Tutorials

A passionate web developer with over a decade experience in web industry.

Founder of SSD Tutorials, where he publishes his free and premium tutorials on how to build modern web applications.

Currently living and working in United Kingdom as a Senior Web Developer for one of the companies in West Sussex.