Skip to content

Just a small blog site

Notifications You must be signed in to change notification settings

GuillaumeSTEIN/test-sf4

Repository files navigation

test-sf4

Here is my solution for this problem :

create a (minimalistic) blog using symfony 4.x:

create a first route "/admin/articles/create" that opens a page with a form

that form has two fields (title / description) and a submit button

on submit the article has to be sanitized, remove all html code except links and image tags

the article gets saved into a mysql database, automatically set the date to the current time

create a second page "/admin/articles" which lists all the articles, display the last 10 articles by date in descending order

the list is the title of the article, the title of the article is a link to “view article” page and every row also has an “edit” button

if the admin clicks on the edit button it's opens the edit article page, create a route "/admin/articles/edit", with the same form as the create page, except that this time you load the article data so that the admin can edit it and then save the updated article

if the admin clicks on the link of the article, it opens the view page, create a route "/articles/view/id" that displays the title of the article, the date of submission and the description

About

Just a small blog site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published