Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Demandware MVC concept

I am new guy to Demandware and I am switching from Magento to Demandware. Demandware is not opensource I am not getting proper tutorials, stuff to understand the concepts of it.

I am from Magento so I know the Magento MVC structure. But in Demandware we have different concepts like pipelines, pipelets, ISML scripts, ECMA script, DW scripts etc.

I want to know the MVC pattern of Demandware. How it works and what are the basic concept I need to concentrate?

like image 245
Charlie Avatar asked May 09 '16 08:05

Charlie


1 Answers

I would suggest to request a Demandware XChange account as soon as possible for you, so that you get access to the Demandware community portal and also to the API documentation.

In short:

  1. Models are Demandware Forms and Demandware API objects
  2. Controllers are Demandware Pipelines (there are JavaScript Controllers that are recently released, you may find these easier to understand if you have Node.js experience). These can call DW Scripts (DemandwareScript is based on ECMAScript standard 5.0 for JavaScript with some extensions like E4X and optional types)
  3. Views are the isml templates. You should avoid including a lot of logic in them, either with isml tags like isif, isloop, etc. or with isscript.

Any further questions - let me know.

Hope this helps,

Zlatin

like image 60
Zlatin Zlatev Avatar answered Sep 22 '22 23:09

Zlatin Zlatev