Intro to WebDevelopment - raisercostin/software-wiki GitHub Wiki
- etag
- tcp/ip
- http
- html & browsers
- web tools
- styling
- Model - View - Controller
-
/routesusers/profile/:id = Users.getProfile(id)
-
/controllersclass Users{ function getProfile(id){ profile = this.UserModel.getProfile(id) renderView('users/profile', profile) }
-
/modelsclass 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>
-
-
-