Where does Magento keeps it's business logic?Where does “logic” go? Blocks and accessing ModelsNeed to know whole Magento Design PatternsHow To Modify Tax Calculations in Magento 1.9Making a frontend page for each entry in ModelWhere does Magento 2 URL Segment Parsing HappenIn Magento model do we have business logic or a controller?Where does Magento implement methods?Why does Magento need blocks?What is the best practice way in Magento 2 for creating Many To Many relationships?Magento 2 follows MVVM architecture or MVC architechure?
If a high rpm motor is run at lower rpm, will it produce more torque?
Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?
The difference between Rad1 and Rfd1
Bash echo $-1 prints hb1. Why?
What is the line crossing the Pacific Ocean that is shown on maps?
Forgot chonantanu after already making havdalah over wine
how to remove the dotted white border around focused button text?
“Faire” being used to mean “avoir l’air”?
Should I hide continue button until tasks are completed?
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
Why is a blank required between "[[" and "-e xxx" in ksh?
Professor Roman gives unusual math quiz ahead of
How was film developed in the late 1920s?
One folder two different locations on ubuntu 18.04
What's the point of DHS warning passengers about Manila airport?
How can I convince my reader that I will not use a certain trope?
How to write or read powers (math) by words?
Wilcoxon signed rank test – critical value for n>50
AT system without -5v
What shortcut does ⌦ symbol in Camunda macOS app indicate and how to invoke it?
Signing using digital signatures?
How hard is it to sell a home which is currently mortgaged?
Set vertical spacing between two particular items
A player is constantly pestering me about rules, what do I do as a DM?
Where does Magento keeps it's business logic?
Where does “logic” go? Blocks and accessing ModelsNeed to know whole Magento Design PatternsHow To Modify Tax Calculations in Magento 1.9Making a frontend page for each entry in ModelWhere does Magento 2 URL Segment Parsing HappenIn Magento model do we have business logic or a controller?Where does Magento implement methods?Why does Magento need blocks?What is the best practice way in Magento 2 for creating Many To Many relationships?Magento 2 follows MVVM architecture or MVC architechure?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I went through some articles which describes Magento architecture.
As we all knows Magento uses MVC ( Model-View-Controller ) architecture
. It separates the business logic, data access layer and user view.
Some articles say business logic resides in Block
classes whereas some other articles say it is in Model
classes (With respect to Magento modules). This is bit conflicting information.
Can anyone provide better explanation on this?
magento-1.9 blocks model architecture mvc
add a comment |
I went through some articles which describes Magento architecture.
As we all knows Magento uses MVC ( Model-View-Controller ) architecture
. It separates the business logic, data access layer and user view.
Some articles say business logic resides in Block
classes whereas some other articles say it is in Model
classes (With respect to Magento modules). This is bit conflicting information.
Can anyone provide better explanation on this?
magento-1.9 blocks model architecture mvc
add a comment |
I went through some articles which describes Magento architecture.
As we all knows Magento uses MVC ( Model-View-Controller ) architecture
. It separates the business logic, data access layer and user view.
Some articles say business logic resides in Block
classes whereas some other articles say it is in Model
classes (With respect to Magento modules). This is bit conflicting information.
Can anyone provide better explanation on this?
magento-1.9 blocks model architecture mvc
I went through some articles which describes Magento architecture.
As we all knows Magento uses MVC ( Model-View-Controller ) architecture
. It separates the business logic, data access layer and user view.
Some articles say business logic resides in Block
classes whereas some other articles say it is in Model
classes (With respect to Magento modules). This is bit conflicting information.
Can anyone provide better explanation on this?
magento-1.9 blocks model architecture mvc
magento-1.9 blocks model architecture mvc
asked Feb 15 '16 at 17:38
SukeshiniSukeshini
6,61014 gold badges57 silver badges115 bronze badges
6,61014 gold badges57 silver badges115 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Magento controller is almost the same as other MVC design pattern
Magento Models includes business model and resource models, Each entity should have its business model, resource model and a collection. Business models talk to database entity through relative resource models. They do not talk directly to database.
Magento Views includes Blocks and Templates.
Each controller defines its relative blocks or load blocks dynamically according to layout xml configuration files.
Blocks ask for help from Business Models and Helpers for preparing data to Templates.
There are many more stuff inside magento but keep it simple like this helps me reading magento source more easily. I hope it helps you too.
add a comment |
MVC stands for Model-View-Controller. Any application that separates it’s data access, business logic and user interface is called MVC. There can be two types of MVC: convention-based and configuration-based.
Example, cakePHP is convention-based, i.e. you just need to follow the instructions of the core system to get your module ready in just few lines. Magento is configuration-based, i.e. you need to specify each and every thing to your module’s config file in order to get it work.
Blocks - Each Block object will render a specific bit of HTML. Block objects do this through a combination of PHP code, and including PHP .phtml template files. Blocks objects are meant to interact with the Magento system to retrieve data from Models, while the phtml template files will produce the HTML needed for a page
Models - Magento offers an Object Relational Mapping (ORM) system. ORMs get you out of the business of writing SQL and allow you to manipulate a datastore purely through PHP code (and other core business logics)
For more Information Magento for Developers: Part 1 - Introduction to Magento
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f101847%2fwhere-does-magento-keeps-its-business-logic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Magento controller is almost the same as other MVC design pattern
Magento Models includes business model and resource models, Each entity should have its business model, resource model and a collection. Business models talk to database entity through relative resource models. They do not talk directly to database.
Magento Views includes Blocks and Templates.
Each controller defines its relative blocks or load blocks dynamically according to layout xml configuration files.
Blocks ask for help from Business Models and Helpers for preparing data to Templates.
There are many more stuff inside magento but keep it simple like this helps me reading magento source more easily. I hope it helps you too.
add a comment |
Magento controller is almost the same as other MVC design pattern
Magento Models includes business model and resource models, Each entity should have its business model, resource model and a collection. Business models talk to database entity through relative resource models. They do not talk directly to database.
Magento Views includes Blocks and Templates.
Each controller defines its relative blocks or load blocks dynamically according to layout xml configuration files.
Blocks ask for help from Business Models and Helpers for preparing data to Templates.
There are many more stuff inside magento but keep it simple like this helps me reading magento source more easily. I hope it helps you too.
add a comment |
Magento controller is almost the same as other MVC design pattern
Magento Models includes business model and resource models, Each entity should have its business model, resource model and a collection. Business models talk to database entity through relative resource models. They do not talk directly to database.
Magento Views includes Blocks and Templates.
Each controller defines its relative blocks or load blocks dynamically according to layout xml configuration files.
Blocks ask for help from Business Models and Helpers for preparing data to Templates.
There are many more stuff inside magento but keep it simple like this helps me reading magento source more easily. I hope it helps you too.
Magento controller is almost the same as other MVC design pattern
Magento Models includes business model and resource models, Each entity should have its business model, resource model and a collection. Business models talk to database entity through relative resource models. They do not talk directly to database.
Magento Views includes Blocks and Templates.
Each controller defines its relative blocks or load blocks dynamically according to layout xml configuration files.
Blocks ask for help from Business Models and Helpers for preparing data to Templates.
There are many more stuff inside magento but keep it simple like this helps me reading magento source more easily. I hope it helps you too.
answered Feb 15 '16 at 18:29
phanvugiapphanvugiap
6691 gold badge5 silver badges13 bronze badges
6691 gold badge5 silver badges13 bronze badges
add a comment |
add a comment |
MVC stands for Model-View-Controller. Any application that separates it’s data access, business logic and user interface is called MVC. There can be two types of MVC: convention-based and configuration-based.
Example, cakePHP is convention-based, i.e. you just need to follow the instructions of the core system to get your module ready in just few lines. Magento is configuration-based, i.e. you need to specify each and every thing to your module’s config file in order to get it work.
Blocks - Each Block object will render a specific bit of HTML. Block objects do this through a combination of PHP code, and including PHP .phtml template files. Blocks objects are meant to interact with the Magento system to retrieve data from Models, while the phtml template files will produce the HTML needed for a page
Models - Magento offers an Object Relational Mapping (ORM) system. ORMs get you out of the business of writing SQL and allow you to manipulate a datastore purely through PHP code (and other core business logics)
For more Information Magento for Developers: Part 1 - Introduction to Magento
add a comment |
MVC stands for Model-View-Controller. Any application that separates it’s data access, business logic and user interface is called MVC. There can be two types of MVC: convention-based and configuration-based.
Example, cakePHP is convention-based, i.e. you just need to follow the instructions of the core system to get your module ready in just few lines. Magento is configuration-based, i.e. you need to specify each and every thing to your module’s config file in order to get it work.
Blocks - Each Block object will render a specific bit of HTML. Block objects do this through a combination of PHP code, and including PHP .phtml template files. Blocks objects are meant to interact with the Magento system to retrieve data from Models, while the phtml template files will produce the HTML needed for a page
Models - Magento offers an Object Relational Mapping (ORM) system. ORMs get you out of the business of writing SQL and allow you to manipulate a datastore purely through PHP code (and other core business logics)
For more Information Magento for Developers: Part 1 - Introduction to Magento
add a comment |
MVC stands for Model-View-Controller. Any application that separates it’s data access, business logic and user interface is called MVC. There can be two types of MVC: convention-based and configuration-based.
Example, cakePHP is convention-based, i.e. you just need to follow the instructions of the core system to get your module ready in just few lines. Magento is configuration-based, i.e. you need to specify each and every thing to your module’s config file in order to get it work.
Blocks - Each Block object will render a specific bit of HTML. Block objects do this through a combination of PHP code, and including PHP .phtml template files. Blocks objects are meant to interact with the Magento system to retrieve data from Models, while the phtml template files will produce the HTML needed for a page
Models - Magento offers an Object Relational Mapping (ORM) system. ORMs get you out of the business of writing SQL and allow you to manipulate a datastore purely through PHP code (and other core business logics)
For more Information Magento for Developers: Part 1 - Introduction to Magento
MVC stands for Model-View-Controller. Any application that separates it’s data access, business logic and user interface is called MVC. There can be two types of MVC: convention-based and configuration-based.
Example, cakePHP is convention-based, i.e. you just need to follow the instructions of the core system to get your module ready in just few lines. Magento is configuration-based, i.e. you need to specify each and every thing to your module’s config file in order to get it work.
Blocks - Each Block object will render a specific bit of HTML. Block objects do this through a combination of PHP code, and including PHP .phtml template files. Blocks objects are meant to interact with the Magento system to retrieve data from Models, while the phtml template files will produce the HTML needed for a page
Models - Magento offers an Object Relational Mapping (ORM) system. ORMs get you out of the business of writing SQL and allow you to manipulate a datastore purely through PHP code (and other core business logics)
For more Information Magento for Developers: Part 1 - Introduction to Magento
answered Feb 15 '16 at 19:22
Prashant ValandaPrashant Valanda
10.1k1 gold badge26 silver badges57 bronze badges
10.1k1 gold badge26 silver badges57 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f101847%2fwhere-does-magento-keeps-its-business-logic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown