Docsity

ASM - WEBG301 - Symfony, Assignments of Programming Languages

Toggle sidebar
bg1
1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Web Project
Submission date
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Le Nguyen Quang Nam
Student ID
GCD201654
Dang Van Anh Tuan
GCD201907
Class
GCD1102
Assessor name
Phan Thanh Tra
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Quang Nam
Anh Tuan
Grading grid
P1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download ASM - WEBG301 - Symfony and more Assignments Programming Languages in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Web Project Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Le Nguyen Quang Nam Student ID

GCD201 654

Dang Van Anh Tuan GCD201 907 Class GCD1 102 Assessor name Phan Thanh Tra Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Quang Nam Anh Tuan Grading grid P1 M1 D

Summative Feedback:Resubmission Feedback: Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date:

  • Chapter 1: Introduction.
    • I. Symfony Framework.
    • II. Scenario.
  • Chapter 2: Design Plan.
    • I. User’s requirements.
        1. Administrator.
        1. Customer.
    • II. Use-case diagram.
    • III. Site map.
    • IV. Entity Relationship Diagram (ERD).
  • Chapter 3: Implementation.
    • I. Preview.
    • II. Source Code Controller.
        1. Library used in Project.
        1. Source code Product Controller.
        1. Registration Controller.
        1. Security Controller.
        1. User Controller.
    • III. Source Code Templates.
        1. Navigation Bar Templates.
        1. Product Templates.
      • e. Manager product templates.
        1. Registration Templates.
        1. Login templates.
        1. User Templates.
    • IV. Source Code Form.
        1. Product Type Form.
        1. Registration Type Form.
        1. User Type Form.
    • V. Evidence of the final result of the project.
        1. Navigation bar.
        1. Navigation bar after login with Customer.
        1. Navigation bar after login with Admin.
        1. Footer.
        1. Product index.
        1. Show product.
        1. Sort product by check box, min price, max price.
        1. Login form.
        1. Register form.
        1. Profile user.
        1. Users’ edit profile.
        1. User index.
        1. Product Management.
        1. Create New Product.
    • VI. GitHub repository evidences.
  • Chapter 4: Conclusion.
      1. What went well?
      1. What did not go well?
      1. Lesson learned and further improvements.
      • a. Lesson learned.
      • b. Further improvements.
  • References
  • Figure 1 : Symfony Framework Table of Figures
  • Figure 2 : Use-case diagram
  • Figure 3 : Site map
  • Figure 4 : Entity Relationship Diagram
  • Figure 5: All controllers
  • Figure 6: All templates
  • Figure 7: The library used in the Product Controller
  • Figure 8: The library used in the Registration Controller
  • Figure 9: The library used in the Security Controller
  • Figure 10: The library used in the User Controller
  • Figure 11: The library used in the Product Type
  • Figure 12: The library used in the Registration Form Type
  • Figure 13: The library used in the User Type
  • Figure 14: Product index
  • Figure 15: Product create new
  • Figure 16: Show product
  • Figure 17: Edit product
  • Figure 18: Delete Product
  • Figure 19: Management products
  • Figure 20: Register User
  • Figure 21: Login User
  • Figure 22: Login
  • Figure 23: Logout
  • Figure 24: Security
  • Figure 25: LoginFormAuthenticator
  • Figure 26: User index
  • Figure 27: Edit User
  • Figure 28: Show user
  • Figure 29: Logo
  • Figure 30: Searching
  • Figure 31: Button
  • Figure 32: Manager button
  • Figure 33: Footer
  • Figure 34: Base
  • Figure 35: Delete Product Templates
  • Figure 36: From Template
  • Figure 37: Edit product templates
  • Figure 38: Filter products
  • Figure 39: Display product
  • Figure 40: Page navigation button.
  • Figure 41: Manager product templates
  • Figure 42: New product template
  • Figure 43: Show product template
  • Figure 44: Registration Templates.
  • Figure 45: Login templates
  • Figure 46: Form user templates.
  • Figure 47: Edit user templates.
  • Figure 48: Index user templates
  • Figure 49: Show user templates
  • Figure 50 : Product Type Form source code
  • Figure 51 : Registration Type Form source code
  • Figure 52 : User Type Form source code
  • Figure 53 : Navigation bar
  • Figure 54 : Navigation bar with Customer
  • Figure 55 : Navigation bar with Admin
  • Figure 56 : Footer
  • Figure 57 : Product index interface
  • Figure 58 : Show product interface
  • Figure 59 : Sort product
  • Figure 60 : Login form interface
  • Figure 61 : Register form interface
  • Figure 62 : Profile user interface
  • Figure 63 : Edit user interface
  • Figure 64 : User index interface by manager
  • Figure 65 : Product management interface by admin
  • Figure 66 : Create a new product by admin
  • Figure 67 : Repository in GitHub
  • Figure 68 : Commits in GitHub

II. Use-case diagram.

Figure 2 : Use-case diagram

III. Site map.

Figure 3 : Site map

Figure 5 : All controllers Figure 6 : All templates

II. Source Code Controller.

1. Library used in Project.

In order to leverage Symfony functions, it is necessary to import the libraries that are available in PHP. The entities and repository files were made in order to get the data into the database and connect with it.

Figure 7 : The library used in the Product Controller Figure 8 : The library used in the Registration Controller Figure 9 : The library used in the Security Controller Figure 10 : The library used in the User Controller Figure 11 : The library used in the Product Type

Figure 14 : Product index b. Create new product. We use this source code as a reference and modify it to meet our requirements. We will add new products to our store when we utilize this controller, and definitely, only the admin can do that.

Figure 15 : Product create new c. Show products. This feature was developed to enable customers to view product details. Figure 16 : Show product d. Edit products. The admin can edit the product information thanks to this function.

3. Category Controller.

a. Category Index. This feature makes it easy to search by Category name. Figure 20. Category Index. b. Create new Category. We create new Category, the code is similar with Product. Figure 21. Create new Category. c. Show Category.

Figure 22. Show Category. d. Edit Category. Figure 23. Edit Category. e. Delete Category.

Figure 25 : Register User b. Login User Automatically. By preserving the user's token and allowing users to access anything that was saved again, this method will make it simpler for users to log in.

Figure 26 : Login User

5. Security Controller.

a. Log in & Log out. This function facilitates user login and logout. Figure 27 : Login Figure 28 : Logout b. Security.yaml.