issues
search
AnnaigJegourel
/
OC-P5-Creez-votre-premier-blog-en-PHP
Blog made from scratch using PHP, OOP, MVC (Study project)
MIT License
2
stars
0
forks
source link
Create Admin feature : approve or refuse comment
#49
Closed
AnnaigJegourel
closed
2 years ago
AnnaigJegourel
commented
2 years ago
[x] In db.sql : Add attribute "approved" in Comment table (tiny int : 0 = to check, 1 = approved, 2 = refused)
[x] Create commentslist.twig with radio button for each comment : approve / refuse
[x] In profile.twig : show link to commentslist.twig
[x] Create approved.twig to inform admin about success
[x] In CommentController : create commentList & commentApprove methods