




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 10: Web Project Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Group number: 03 Student names and codes Final scores Signatures
Chapter 1 – Users’ requirements
This project was born to create a website that is as simple as possible and meets the requirements of users. This is a news website and is often used to create posts documenting the ups and downs that users perceive in their lives.
As a User:
Chapter 2 – System Design Based on the requirements of that customer. Our team has designed diagrams and coding as follows.
Figure 1 : Site Map
A. PostController The Postcontroller is the controller handle for actions at the postpage including the index action is the action handle for displaying posts and users. Also, limit the number of posts per page to be displayed. Figure 3 : PostController(Page Number and Index) The second action is to show the post when the user clicks it after the user has created it, it will give correct post id and the function will accept that id to get data from that Id. Arrive shows the detailed post that the use created. In particular, you can view comments on posts. Figure 4 : PostController(Show post)
This is the creative action of this method that will handle the create a new post and after done creating and new post it will redirect to the home page. Figure 5 : PostController(Create post)
Finally action is Add comment action. It will handle the create a comment according to commentForm and after done creating comment, it will redirect to post_show. Figure 8 : PostController(AddComment) B. RegisterController When a user doesn't already have an account, the registration controller is responsible for processing all requests for registration or account creation. When a user registers, the register action will handle the login procedure. A successful registration will bring you to the log-in page. Figure 9 : RegisterController(register)
C. SecurityController When a user doesn't already have an account, the registration controller is responsible for processing all requests for registration or account creation. When a user logs in, the login action will manage the login procedure. The home page will be redirected after successful login. Figure 10 : SecurityController(login) This Log out function helps users log out of their accounts. When the user logs out, the website will navigate to the default home, requiring the user to log in before using other functions. Figure 11 : SecurityController(logout)
B. CommentForm Comment Form Type is used to add comments. Figure 14 : CommentForm C. RegisterForm When creating a new user or changing an existing user's profile, the Register form type is the form that displays the input fields for inputting the information. Figure 15 : RegisterForm
A. Post.php Figure 16 : Post.php
D. User.php Figure 19 : User.php
A. PostReponsitory Figure 20 : PostRepository B. CommentReponsitory Figure 21 : CommentReponsitory