Download presentation
Presentation is loading. Please wait.
Published byTrevor Snow Modified over 6 years ago
1
Magento Basics part 2 Modules & Themes Stenik Group Ltd. Magento
Martin Grozdanov Software University © Software University Foundation – This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license. 1
2
Table of Contents Using PHP7 With Magento Magento & Modules
Installing modules – Cons Magento & Composer Themes Modules’ Basic Components Modules’ Basic File Architecture Themes’ Basic File Architecture Q&A 2 © Software University Foundation – This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license. 2
3
sli.do # softuni-magento
© Software University Foundation – This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license. 3
4
Using PHP7 With Magento? Patch it.
4
5
Magento & Modules Magento is module based framework
Most of Magento’s core modules are dependent of each other. Naming convention <Namespace>_<Module> Mage_Customer Mage_Catalog Every module is declared with XML file in app/etc/modules/ 5
6
Installing modules - Cons
Magento Connect Install & Cons The module cannot be committed using Magento Connect. The module is hard to be updated from other machines. Manual Install & Cons The module is hard to be updated. 6
7
Magento & Composer Installing module with composer {
"minimum-stability": "dev", "repositories": { "firegento": { "type": "composer", "url": " } }, "require": { "magento-hackathon/magento-composer-installer": "3.0.*" "extra": { "magento-root-dir" : "./", "magento-deploystrategy": "copy", "magento-force": "override" Installing module with composer 7
8
Themes What are themes? Themes in Magento are the representative part Magento – HTML & Layout. Each theme is within package – similar to modules’ namespaces. Installation Just like modules – via Magento Connect, Manual, Composer and etc. 8
9
Modules’ Basic Components
Controllers What to be seen/used. Models Things to be seen/used. Blocks (Views) How to be seen. Helpers The other components’ sidekicks. config.xml Configuration Installers & Updaters 9
10
Modules’ Basic File Architecture
app/etc/modules/<Namespace>_<Module>.xml app/code/<pool>/<Namespace>/<Module>/ Block controllers Helper Model etc sql ... 10
11
Themes’ Basic File Architecture
app/design/frontend/<package>/<theme> layout template … skin/frontend/<package>/<theme> css images js 11
12
License This course (slides, examples, demos, videos, homework, etc.)
is licensed under the "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International" license © Software University Foundation – This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.
13
Trainings @ Software University (SoftUni)
Software University – High-Quality Education, Profession and Job for Software Developers softuni.bg Software University Foundation softuni.org Software Facebook facebook.com/SoftwareUniversity Software University Forums forum.softuni.bg © Software University Foundation – This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.