Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Register an account
2. 140 characters post
3. Follow other user
4. Retweet other posts
Three Users
1. Admin
2. Guest
3. User
Functionalities
Admin
Scope
Users
1. Create users
a. Can assign role
b. Can create password – (!message password to email)
2. Edit users profile
3. View users profile
4. View users info (Profile) with default picture
a. Lists user posts with comments
i. Own post – edit and delete
ii. Own comment – edit and delete
b. Show followers
c. Show following
d. Verified account if followed by admin with ID of 1
5. Activate/Deactivate user account
6. Search user via DataTables
Posts
Timeline
1. Browse posts
2. See mentioned users
Categories
1. Category frequencies
Limitations
1. Search on users UI
2. Update profile picture
User
Scope
1. View posts
2. Follow user
3. Unfollower user
4. Once the user is follow, you can now see their posts
5. Add posts – need to published before display
6. Can post with pictures
7. Can reposts
8. Can edit post
Limitations
1. Search
Guest
Scope
Limitations
Rules
1. After signing it, you will be automatically followed by yourself, but hidden
Restrictions
1. Search
2. Suggests to follow users
3. Doesn’t have outdate status for popular posts
Liked
Learned
Lacked
Longed for
Bugs found:
Code Review
Common:
ex:
AppController
line 18 :remove comment that is not descriptive or not part of the file
line
line
PasswordsTokensController:
PostsController
line:
24:
Make 1 query for this Post Model and get all fields that you want
to get
$post = $this->Post->findById($id);
$authUser = AuthComponent::user('id');
if (!$id) {
if (!$post) {
91:
106:
$this->Post->hasAndBelongsToMany['Category']['unique'] = false;
160:
214:
pr($this->fullname);
die();
290:
$this->layout = "user";
327:
RepostsController
UsersController
line
if (!$id) {
throw new NotFoundException(__('Invalid user'));
$user = $this->User->findById($id);
if (!$user) {
185:
Model
Views:
so far you added h() in data came from controller which is good
changet this