ITELEC 4100 (MVC FRAMEWORK)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/54

flashcard set

Earn XP

Description and Tags

SIR SANTI

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

55 Terms

1
New cards

MVC Framework

Architectural pattern that separates an application into three logical components: Model

2
New cards

MVC Usage

MVC is one of the most frequently used industry-standard web development frameworks

3
New cards

Model Component

Corresponds to all data-related logic that the user works with and can retrieve

4
New cards

View Component

User Interface for the users of the application

5
New cards

Controller Component

Acts as a bridge between View and Model — handles user requests

6
New cards

Benefits of MVC

Separation of business logic and presentation

7
New cards

Benefit 2

Allows independent changing/updating of model and view

8
New cards

Benefit 3

Enables code reusability

9
New cards

Benefit 4

Improves code maintainability

10
New cards

Benefit 5

Increases speed of application development

11
New cards

Benefit 6

Allows division of tasks among programmers

12
New cards

Disadvantage 1

Complex even for small projects

13
New cards

Disadvantage 2

Requires proper understanding to avoid misuse

14
New cards

Disadvantage 3

Has slight performance overhead compared to procedural code

15
New cards

Choosing MVC Framework

We must choose a programming language and MVC framework before development

16
New cards

Popular MVC Framework: ASP.NET

Supports multiple programming languages (C# most popular) and is cross-platform

17
New cards

Popular MVC Framework: Django

Uses Python and includes many universal modules

18
New cards

Popular MVC Framework: Ruby on Rails

Good for business and high-speed development

19
New cards

Popular MVC Framework: Laravel

Uses PHP and offers high security

20
New cards

Laravel Framework

Laravel is a web application framework with expressive

21
New cards

Why Laravel?

OOP approach

22
New cards

Why Laravel? (2)

Built-in authentication

23
New cards

Why Laravel? (3)

Templating engine (Blade)

24
New cards

Why Laravel? (4)

Eloquent ORM

25
New cards

Why Laravel? (5)

Security via csrf_token

26
New cards

Why Laravel? (6)

Excellent documentation

27
New cards

PHP for Selecting Laravel Version

Choose compatible PHP version for your Laravel release

28
New cards

Routing (Basics)

Defines how your app responds to different URLs

29
New cards

Routing Methods

Determine HTTP methods (GET

30
New cards

CSRF Protection

Prevents Cross-Site Request Forgery attacks using a CSRF “_token” for each session

31
New cards

CSRF Tokens

Required for POST

32
New cards

Redirect Routes

Redirects a user to another URL or route

33
New cards

View Routes

Displays a specific view when accessed

34
New cards

Route Parameters

Allows dynamic data in routes (e.g.

35
New cards

Route Parameter Constraints

Restricts route parameters using conditions

36
New cards

Route Name

Assigns name to routes for easy reference

37
New cards

Route Group

Groups routes sharing attributes (like middleware)

38
New cards

Route Prefixes

Adds common prefixes to grouped routes

39
New cards

Form Method Spoofing

Allows HTML forms to simulate PUT

40
New cards

Controllers

Acts as intermediary between Model and View

41
New cards

Single Action Controller

Controller that handles only one action or method

42
New cards

Resource Controller

Generates CRUD routes and methods automatically

43
New cards

HTTP Request

Laravel handles requests using OOP-based Request class

44
New cards

Blade Templating Engine

Simple yet powerful templating system used for Laravel views

45
New cards

Validation

Ensures data is correct before saving to the database

46
New cards

Validation (Return in View)

Displays validation errors in view after submission

47
New cards

Validation Rules

Set of predefined rules for validating form input

48
New cards

Eloquent ORM

Object-Relational Mapper that simplifies database interactions

49
New cards

Eloquent Example

Model example with table

50
New cards

Eloquent Relationships

Defines relations between tables like One To One

51
New cards

Eloquent Relationship Types

Has One Through

52
New cards

Getting Started with Laravel

Requires Composer

53
New cards

Creating New Application

Use command: composer create-project laravel/laravel=

54
New cards

Running Laravel App

Use terminal: cd then run php artisan serve

55
New cards

Access Laravel App

Open browser and go to http://127.0.0.1:8000