SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Institute Name: Shree P.M.Patel Institute of Post Graduation Studies and Research in
Applied Science
Managed By: Anand People Medicare Society, Anand
Seminar Topic: MVC in PHP
Seminar By,
Kavankumar Nileshkumar Solanki
MSc.IT 2ND Semester
Roll No.: 03
Objectives
Challenges Faced when Designing an Application Without Framework
Introduction to MVC
What is MVC?
Benefits of MVC
Popular MVC Frameworks
DRY
Bibliography
Challenges Faced when Designing
an Application without a Framework
Complexity in Coding in straight
PHP
Everything must be tested; which is difficult
Difficult to re-use code
Hard code everything from scratch
Teamwork challenges -parallel programming cannot be done efficiently
Introduction to MVC
• Software development is not a new idea. Ada Lovelace is said to have written
the first computer program in the mid-nineteenth century for the Analytical
Engine, the first mechanical computer prototyped by Charles Babbage.
• Designing good software is hard.
• It involves taking into consideration all aspects of the application you need to
build, and is complicated further by the need to be specific enough to your
current requirements to get the job done, while being generic enough to
address future problems.
• Many experienced developers have had these problems and, over time,
common patterns have emerged that assist in solving them.
• Christopher Alexander, a structural architect, first described patterns in such
a way that they can be applied to software development. He said, “Each
pattern describes a problem which occurs over and over again in our
environment, and then describes the core of the solution to that problem, in
such a way that you can use this solution a million times over, without ever
doing it the same way twice.”
What is MVC?
MVC (Model-View-Controller) is a software design pattern built around the
interconnection of three main component types, in a programming language
such as PHP, often with a strong focus on object-oriented programming
(OOP) software paradigms.
The three component types are loosely termed models, views, and
controllers.
Model
The model is where all the business logic of an application is kept.
Business logic can be anything specific to how an application stores data,
or uses third-party services, in order to fulfill its business requirements.
If the application should access information in a database, the code to do
that would be kept in the model.
View
The view is where all of the user interface elements of our application
are kept. This can include our HTML markup, CSS style sheets, and
JavaScript files.
Anything a user sees or interacts with can be kept in a view, and
sometimes what the user sees is actually a combination of many different
views in the same request.
Controller
The controller is the component that connects models and views
together. Controllers isolate the business logic of a model from the user
interface elements of a view, and handle how the application will
respond to user interaction in the view.
Controllers are the first point of entry into this trio of components,
because the request is first passed to a controller, which will then
instantiate the models and views required to fulfill a request to the
application.
Benefits of MVC
• There is no point explaining what MVC is without knowing why you
should use it. Remember Christopher Alexander’s patterns that I
mentioned earlier?
• MVC is one of the many patterns that will be explained in this book, but
to understand the usefulness of this design pattern, we must look toward
the problems it helps to alleviate.
Popular MVC Frameworks
• There are many great PHP frameworks availible, but if we limit our view
to just three, I think we can get a good idea of what they have in
common, and what makes each special.
• These are not the best or the only PHP MVC frameworks, but simply a
good cross-section of the different approaches to PHP MVC
development.
CodeIgniter
• CodeIgniter is the first and simplest of the frameworks we will be looking
into.
• It is developed and maintained by Ellis Lab and can be described as an
open source Expression Engine.
• You can download CodeIgniter at http://codeigniter.com.
• You can also learn more about EllisLab and ExpressionEngine at
http://ellislab.com.
Zend Framework
• Zend Framework is an extensive collection of loosely coupled
code libraries that can form the basis of an MVC architecture.
• Zend Framework takes quite a bit of effort to understand and
master relative to other popular MVC frameworks.
• It is developed by Zend Technologies and enjoys all the benefits
of a large, stable community and wide adoption.
• Whereas frameworks like CodeIgniter strive to be lightweight,
favoring just the essentials, Zend Framework includes libraries
that help developers utilize a wide range of third-party services
and APIs.
• You can download Zend Framework at
http://framework.zend.com.
• You can also learn more about Zend at http://zend.com.
CakePHP
• CakePHP is arguably the most popular of the three frameworks.
• Unlike the previous two frameworks, it is not governed by any one
corporate entity.
• It has a large community and is widely adopted.
• It favors convention over configuration, which means a lot of the finer
details are assumed and automated.
• This is apparent in every area of the framework, and you will often find
yourself wondering how CakePHP is doing something you didn’t ask it to
do, both good and bad.
• This means you can develop an application quickly, but also that you
might have a hard time when you need to make very specific changes.
Continue
• This is even seen in the code-generation command-line tool: Bake.
• Within minutes, it can generate a working application, just by following
command-line prompts and filling in the blanks with default parameters
and behaviors.
• You can download CakePHP at http://cakephp.org.
DRY
• DRY just means "Don't Repeat Yourself". Make sure that when you write
code, you only write it one time.
• The DRY principle is stated as "Every piece of knowledge must have a
single, unambiguous, authoritative representation within a system."
Bibliography
Pro PHP MVC Chris Pitt APRESS Nov-2012
• Webinar on Principles of MVC For PHP Developers by EDUREKA ON
04/Aug./15
[ http://www.edureka.co/php-mysql]
Ps02 cint24 mvc in php
Ps02 cint24 mvc in php

Weitere ähnliche Inhalte

Was ist angesagt?

PHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterPHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterJamshid Hashimi
 
Choose the right PHP framework for your website?
Choose the right PHP framework for your website?Choose the right PHP framework for your website?
Choose the right PHP framework for your website?XHTML Champs
 
Asp net mvc series for beginers part 1
Asp net mvc series for beginers part 1Asp net mvc series for beginers part 1
Asp net mvc series for beginers part 1Gaurav Arora
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Untung D Saptoto
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in MuleShahid Shaik
 
Introduction To Model View Presenter
Introduction To Model View PresenterIntroduction To Model View Presenter
Introduction To Model View Presentersaeed shargi ghazani
 
Top Web Development Frameworks Comparison: All You Need To Know
Top Web Development Frameworks Comparison: All You Need To KnowTop Web Development Frameworks Comparison: All You Need To Know
Top Web Development Frameworks Comparison: All You Need To KnowPixel Crayons
 
List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019  List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019 kritikumar16
 
Java for beginners
Java for beginnersJava for beginners
Java for beginnersDucat
 
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Beat Signer
 
A Simple MVC Framework for Widget Development
A Simple MVC Framework for Widget DevelopmentA Simple MVC Framework for Widget Development
A Simple MVC Framework for Widget DevelopmentMartin Ebner
 
Laravel 9 is now out – how is an improvement over its predecessors
Laravel 9 is now out – how is an improvement over its predecessorsLaravel 9 is now out – how is an improvement over its predecessors
Laravel 9 is now out – how is an improvement over its predecessorsMoon Technolabs Pvt. Ltd.
 

Was ist angesagt? (18)

MVC & CodeIgniter
MVC & CodeIgniterMVC & CodeIgniter
MVC & CodeIgniter
 
PHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterPHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniter
 
Choose the right PHP framework for your website?
Choose the right PHP framework for your website?Choose the right PHP framework for your website?
Choose the right PHP framework for your website?
 
Asp net mvc series for beginers part 1
Asp net mvc series for beginers part 1Asp net mvc series for beginers part 1
Asp net mvc series for beginers part 1
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in Mule
 
Introduction To Model View Presenter
Introduction To Model View PresenterIntroduction To Model View Presenter
Introduction To Model View Presenter
 
Mvc3 part1
Mvc3   part1Mvc3   part1
Mvc3 part1
 
Top Web Development Frameworks Comparison: All You Need To Know
Top Web Development Frameworks Comparison: All You Need To KnowTop Web Development Frameworks Comparison: All You Need To Know
Top Web Development Frameworks Comparison: All You Need To Know
 
List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019  List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019
 
Month 2 report
Month 2 reportMonth 2 report
Month 2 report
 
Java for beginners
Java for beginnersJava for beginners
Java for beginners
 
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
 
A Simple MVC Framework for Widget Development
A Simple MVC Framework for Widget DevelopmentA Simple MVC Framework for Widget Development
A Simple MVC Framework for Widget Development
 
Introduction to asp.net mvc
Introduction to asp.net mvcIntroduction to asp.net mvc
Introduction to asp.net mvc
 
Laravel 9 is now out – how is an improvement over its predecessors
Laravel 9 is now out – how is an improvement over its predecessorsLaravel 9 is now out – how is an improvement over its predecessors
Laravel 9 is now out – how is an improvement over its predecessors
 
PHP Frameworks
PHP FrameworksPHP Frameworks
PHP Frameworks
 
Test automation-framework
Test automation-frameworkTest automation-framework
Test automation-framework
 

Ähnlich wie Ps02 cint24 mvc in php

An Introduction To Model  View  Controller In XPages
An Introduction To Model  View  Controller In XPagesAn Introduction To Model  View  Controller In XPages
An Introduction To Model  View  Controller In XPagesUlrich Krause
 
MWLUG 2015 - An Introduction to MVC
MWLUG 2015 - An Introduction to MVCMWLUG 2015 - An Introduction to MVC
MWLUG 2015 - An Introduction to MVCUlrich Krause
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9AHM Pervej Kabir
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--devaltsav
 
Generic repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkGeneric repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkMd. Mahedee Hasan
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!Muhammad Ghazali
 
Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Mike Brown
 
Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Jennie Gajjar
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterPongsakorn U-chupala
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayLanate Drummond
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the informationToushik Paul
 

Ähnlich wie Ps02 cint24 mvc in php (20)

Php Framework
Php FrameworkPhp Framework
Php Framework
 
Why MVC?
Why MVC?Why MVC?
Why MVC?
 
MVC.pptx
MVC.pptxMVC.pptx
MVC.pptx
 
An Introduction To Model  View  Controller In XPages
An Introduction To Model  View  Controller In XPagesAn Introduction To Model  View  Controller In XPages
An Introduction To Model  View  Controller In XPages
 
MWLUG 2015 - An Introduction to MVC
MWLUG 2015 - An Introduction to MVCMWLUG 2015 - An Introduction to MVC
MWLUG 2015 - An Introduction to MVC
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
 
MVC 3.0 KU Day 1 v 1.1
MVC 3.0 KU Day 1 v 1.1MVC 3.0 KU Day 1 v 1.1
MVC 3.0 KU Day 1 v 1.1
 
Generic repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkGeneric repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity Framework
 
Asp 1a-aspnetmvc
Asp 1a-aspnetmvcAsp 1a-aspnetmvc
Asp 1a-aspnetmvc
 
Aspnetmvc 1
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
 
Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?
 
Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter
 
Php and-mvc
Php and-mvcPhp and-mvc
Php and-mvc
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing Essay
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the information
 

Mehr von Conestoga Collage

Mehr von Conestoga Collage (13)

Networking and Security in Java
Networking and Security in JavaNetworking and Security in Java
Networking and Security in Java
 
Ps02 eint21 electronic data interchange
Ps02 eint21 electronic data interchangePs02 eint21 electronic data interchange
Ps02 eint21 electronic data interchange
 
Ps02 cint21 enterprise information system
Ps02 cint21 enterprise information systemPs02 cint21 enterprise information system
Ps02 cint21 enterprise information system
 
Ps02 cint23 ado
Ps02 cint23 adoPs02 cint23 ado
Ps02 cint23 ado
 
PS02CINT22 SE Software Maintenance
PS02CINT22 SE Software MaintenancePS02CINT22 SE Software Maintenance
PS02CINT22 SE Software Maintenance
 
Operating systems & its future
Operating systems & its futureOperating systems & its future
Operating systems & its future
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Blue Brain project
Blue Brain projectBlue Brain project
Blue Brain project
 
AI programming languages
AI programming languagesAI programming languages
AI programming languages
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Web Based Claim Processing System
Web Based Claim Processing SystemWeb Based Claim Processing System
Web Based Claim Processing System
 
Blue Brain Project
Blue Brain ProjectBlue Brain Project
Blue Brain Project
 
Menu stripe
Menu stripeMenu stripe
Menu stripe
 

Kürzlich hochgeladen

一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书atedyxc
 
amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...israjan914
 
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...asli amil baba bengali black magic kala jadu expert in uk usa canada france c...
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...israjan914
 
GIFT City Overview India's Gateway to Global Finance
GIFT City Overview  India's Gateway to Global FinanceGIFT City Overview  India's Gateway to Global Finance
GIFT City Overview India's Gateway to Global FinanceGaurav Kanudawala
 
Retail sector trends for 2024 | European Business Review
Retail sector trends for 2024  | European Business ReviewRetail sector trends for 2024  | European Business Review
Retail sector trends for 2024 | European Business ReviewAntonis Zairis
 
FEW OF THE DEVELOPMENTS FOUND IN LESOTHO
FEW OF THE DEVELOPMENTS FOUND IN LESOTHOFEW OF THE DEVELOPMENTS FOUND IN LESOTHO
FEW OF THE DEVELOPMENTS FOUND IN LESOTHOMantsepisengTubatsi
 
certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...israjan914
 
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书atedyxc
 
The Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered BondsThe Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered BondsNeil Day
 
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书atedyxc
 
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...rightmanforbloodline
 
L1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdfL1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdfmiladsojoudi211
 
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书atedyxc
 
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdfAdnet Communications
 
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...israjan914
 
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...Klinik kandungan
 
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书atedyxc
 
1. Elemental Economics - Introduction to mining
1. Elemental Economics - Introduction to mining1. Elemental Economics - Introduction to mining
1. Elemental Economics - Introduction to miningNeal Brewster
 

Kürzlich hochgeladen (20)

一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加州理工学院毕业证成绩单学位证书
 
amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...amil baba in australia amil baba in canada amil baba in london amil baba in g...
amil baba in australia amil baba in canada amil baba in london amil baba in g...
 
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...asli amil baba bengali black magic kala jadu expert in uk usa canada france c...
asli amil baba bengali black magic kala jadu expert in uk usa canada france c...
 
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUPSTRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
 
GIFT City Overview India's Gateway to Global Finance
GIFT City Overview  India's Gateway to Global FinanceGIFT City Overview  India's Gateway to Global Finance
GIFT City Overview India's Gateway to Global Finance
 
Retail sector trends for 2024 | European Business Review
Retail sector trends for 2024  | European Business ReviewRetail sector trends for 2024  | European Business Review
Retail sector trends for 2024 | European Business Review
 
FEW OF THE DEVELOPMENTS FOUND IN LESOTHO
FEW OF THE DEVELOPMENTS FOUND IN LESOTHOFEW OF THE DEVELOPMENTS FOUND IN LESOTHO
FEW OF THE DEVELOPMENTS FOUND IN LESOTHO
 
certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...certified amil baba ,black magic specialist in russia and kala jadu expert in...
certified amil baba ,black magic specialist in russia and kala jadu expert in...
 
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
 
The Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered BondsThe Pfandbrief Roundtable 2024 - Covered Bonds
The Pfandbrief Roundtable 2024 - Covered Bonds
 
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
 
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...
Solution Manual For Financial Statement Analysis, 13th Edition By Charles H. ...
 
L1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdfL1 2024 Prequisite QM persion milad1371.pdf
L1 2024 Prequisite QM persion milad1371.pdf
 
Looking for safe abortion pills? Dial +971581248768 for availability in Dubai...
Looking for safe abortion pills? Dial +971581248768 for availability in Dubai...Looking for safe abortion pills? Dial +971581248768 for availability in Dubai...
Looking for safe abortion pills? Dial +971581248768 for availability in Dubai...
 
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书
一比一原版(Caltech毕业证书)加利福尼亚理工学院毕业证成绩单学位证书
 
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
20240514-Calibre-Q1-2024-Conference-Call-Presentation.pdf
 
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
amil baba kala jadu expert uk amil baba kala jadu removal uk amil baba in mal...
 
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...
Jual obat aborsi Jogja ( 085657271886 ) Cytote pil telat bulan penggugur kand...
 
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
 
1. Elemental Economics - Introduction to mining
1. Elemental Economics - Introduction to mining1. Elemental Economics - Introduction to mining
1. Elemental Economics - Introduction to mining
 

Ps02 cint24 mvc in php

  • 1. Institute Name: Shree P.M.Patel Institute of Post Graduation Studies and Research in Applied Science Managed By: Anand People Medicare Society, Anand Seminar Topic: MVC in PHP Seminar By, Kavankumar Nileshkumar Solanki MSc.IT 2ND Semester Roll No.: 03
  • 2. Objectives Challenges Faced when Designing an Application Without Framework Introduction to MVC What is MVC? Benefits of MVC Popular MVC Frameworks DRY Bibliography
  • 3. Challenges Faced when Designing an Application without a Framework Complexity in Coding in straight PHP Everything must be tested; which is difficult Difficult to re-use code Hard code everything from scratch Teamwork challenges -parallel programming cannot be done efficiently
  • 4. Introduction to MVC • Software development is not a new idea. Ada Lovelace is said to have written the first computer program in the mid-nineteenth century for the Analytical Engine, the first mechanical computer prototyped by Charles Babbage. • Designing good software is hard. • It involves taking into consideration all aspects of the application you need to build, and is complicated further by the need to be specific enough to your current requirements to get the job done, while being generic enough to address future problems. • Many experienced developers have had these problems and, over time, common patterns have emerged that assist in solving them. • Christopher Alexander, a structural architect, first described patterns in such a way that they can be applied to software development. He said, “Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice.”
  • 5. What is MVC? MVC (Model-View-Controller) is a software design pattern built around the interconnection of three main component types, in a programming language such as PHP, often with a strong focus on object-oriented programming (OOP) software paradigms. The three component types are loosely termed models, views, and controllers.
  • 6. Model The model is where all the business logic of an application is kept. Business logic can be anything specific to how an application stores data, or uses third-party services, in order to fulfill its business requirements. If the application should access information in a database, the code to do that would be kept in the model.
  • 7. View The view is where all of the user interface elements of our application are kept. This can include our HTML markup, CSS style sheets, and JavaScript files. Anything a user sees or interacts with can be kept in a view, and sometimes what the user sees is actually a combination of many different views in the same request.
  • 8. Controller The controller is the component that connects models and views together. Controllers isolate the business logic of a model from the user interface elements of a view, and handle how the application will respond to user interaction in the view. Controllers are the first point of entry into this trio of components, because the request is first passed to a controller, which will then instantiate the models and views required to fulfill a request to the application.
  • 9. Benefits of MVC • There is no point explaining what MVC is without knowing why you should use it. Remember Christopher Alexander’s patterns that I mentioned earlier? • MVC is one of the many patterns that will be explained in this book, but to understand the usefulness of this design pattern, we must look toward the problems it helps to alleviate.
  • 10. Popular MVC Frameworks • There are many great PHP frameworks availible, but if we limit our view to just three, I think we can get a good idea of what they have in common, and what makes each special. • These are not the best or the only PHP MVC frameworks, but simply a good cross-section of the different approaches to PHP MVC development.
  • 11. CodeIgniter • CodeIgniter is the first and simplest of the frameworks we will be looking into. • It is developed and maintained by Ellis Lab and can be described as an open source Expression Engine. • You can download CodeIgniter at http://codeigniter.com. • You can also learn more about EllisLab and ExpressionEngine at http://ellislab.com.
  • 12. Zend Framework • Zend Framework is an extensive collection of loosely coupled code libraries that can form the basis of an MVC architecture. • Zend Framework takes quite a bit of effort to understand and master relative to other popular MVC frameworks. • It is developed by Zend Technologies and enjoys all the benefits of a large, stable community and wide adoption. • Whereas frameworks like CodeIgniter strive to be lightweight, favoring just the essentials, Zend Framework includes libraries that help developers utilize a wide range of third-party services and APIs. • You can download Zend Framework at http://framework.zend.com. • You can also learn more about Zend at http://zend.com.
  • 13. CakePHP • CakePHP is arguably the most popular of the three frameworks. • Unlike the previous two frameworks, it is not governed by any one corporate entity. • It has a large community and is widely adopted. • It favors convention over configuration, which means a lot of the finer details are assumed and automated. • This is apparent in every area of the framework, and you will often find yourself wondering how CakePHP is doing something you didn’t ask it to do, both good and bad. • This means you can develop an application quickly, but also that you might have a hard time when you need to make very specific changes.
  • 14. Continue • This is even seen in the code-generation command-line tool: Bake. • Within minutes, it can generate a working application, just by following command-line prompts and filling in the blanks with default parameters and behaviors. • You can download CakePHP at http://cakephp.org.
  • 15. DRY • DRY just means "Don't Repeat Yourself". Make sure that when you write code, you only write it one time. • The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."
  • 16.
  • 17. Bibliography Pro PHP MVC Chris Pitt APRESS Nov-2012 • Webinar on Principles of MVC For PHP Developers by EDUREKA ON 04/Aug./15 [ http://www.edureka.co/php-mysql]