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;








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?










share|improve this question




























    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?










    share|improve this question
























      0












      0








      0


      1






      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 15 '16 at 17:38









      SukeshiniSukeshini

      6,61014 gold badges57 silver badges115 bronze badges




      6,61014 gold badges57 silver badges115 bronze badges




















          2 Answers
          2






          active

          oldest

          votes


















          0














          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.






          share|improve this answer






























            0














            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






            share|improve this answer

























              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
              );



              );













              draft saved

              draft discarded


















              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









              0














              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.






              share|improve this answer



























                0














                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.






                share|improve this answer

























                  0












                  0








                  0







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 15 '16 at 18:29









                  phanvugiapphanvugiap

                  6691 gold badge5 silver badges13 bronze badges




                  6691 gold badge5 silver badges13 bronze badges























                      0














                      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






                      share|improve this answer



























                        0














                        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






                        share|improve this answer

























                          0












                          0








                          0







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          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



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form