Post on 12-Jul-2015
transcript
Totali ProjectPresentation II
We were tasked to create a backend booking service, one that could be used for lots of different things- like cars, hotels, etc.
Unlike the previous weeks, we finally decided on a plan.
Totali Project
The Overview
Goals over the next few weeks…
Learn Code Igniter Have a meeting with the client Finish the tables Make and test the SQL queries Make the PHP + Code Igniter Scripts Do extensive testing
Totali Project
The Plan
Those three goals formed our four part plan.
SQL Tables SQL Queries PHP Scripts Final Testing
Totali Project
Meeting…
Totali Project
In week 4 we finally had a full group meeting with the client.
It was instrumental in deciding how the project would evolve over the rest of the semester.
After some careful consultation with we decided we needed a more robust database so we revamped it.
Our old database looked like this…
Store
Totali Project
Product Type
CustomerBooking
Totali SQL Database v1.0
Totali ProjectUpdated SQL Database
Totali SQL Database v2.4
Totali Project
Inventory
Product Type
Bookings
Availability
Availability Rules
Product Rego
Customer
Payment
Product Class
WOF Expiry
Other Stuff
Working with SQL Queries
We had worked with foreign keys to link tables, but per the client’s request, we used Joins instead.
We needed a separate query for every type of operation we would need, this resulted in at least 9 query requests.
Totali Project
Check Availability Query
<content></content>
Totali Project
Scripts and Code Igniter
Finally, with both the tables and their corresponding queries completed it was time for the actual scripting.
The client requested we implement the scripts using a PHP library/framework called Code Igniter.
Learning code igniter was the greatest challenge as it was something we had never encountered before.
Totali Project
The check Availability script
Totali Project
Code Igniter’s custom MVC
Totali Project
Controller
User
View Model
MySQLUses
Sees
Modifies Manipulates
Queries
Summary
We’re currently in the script development stage, which should be finished soon.
After which, we’ll start the final phase, testing.
Totali Project