Intro to WebDevelopment - raisercostin/software-wiki GitHub Wiki
- etag
- tcp/ip
- http
- html & browsers
- web tools
- styling
- Model - View - Controller
-
/routes
users/profile/:id = Users.getProfile(id)
-
/controllers
class Users{ function getProfile(id){ profile = this.UserModel.getProfile(id) renderView('users/profile', profile) }
-
/models
class UserModel{ function getProfile(id){ data = this.db.get('SELECT * FROM users WHERE id = id') return data; }
-
/views
-
/users
-
/profile
<h1>{{profile.name}}</h1> <ul> <li>Email: {{profile.email}}</li> <li>Phone: {{profile.phone}}</li> </ul>
-
-
-