0

Magento 2 related Question. Is a block(CMS Static Block) which I create via the Admin Panl, the same as a block which I created programatically in a module (app/code/Vendor/Module1/Block/Bla.php) ?

IF YES: In which folder is the static block(CMS Static Block) I created (via admin panel) located ? Where is the physical php class and the template and the layout XML file ?

IF NO: Where is the difference ?

Please Help I'm very confused. Any resource links are apreciated !

asked Oct 23, 2016 at 20:35

1 Answer 1

1

No, they are completely different. CMS blocks are a way to organize frontend static content. They are stored in the database, not anywhere in the file structure.

Php block classes, on the other hand, are generally used for business logic such as 'is this user logged in?' or 'what are the products in this category?'.

answered Oct 24, 2016 at 0:27
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.