Magento 2 Training : Unit 4 – Lesson A Layout declaration To create page content, we must declare it in a layout. Remember, the layout’s name is associated with the controller. Our action is jobs/department, so our layout name is
Admin controller creation with Magento 2
Magento 2 Training : Unit 3 – Lesson E Backend controller declaration In the last Unit, we learnt how to create a frontend controller, now let’s create an admin controller. Create the file : app/code/Maxime/Jobs/etc/adminhtml/routes.xml You can put this content
Admin menu creation and access control list managment (ACL) on Magento 2
Magento 2 Training : Unit 3 – Lesson D Add menu in backoffice – On existing section We will add our menu on Magento BO. For this example, we will add it on “Content” section Create file app/code/Maxime/Jobs/etc/adminhtml/menu.xml And put
Magento 2.0.1, Magento CE 1.9.2.3, Magento EE 1.14.2.3 Updates (PATCH SUPEE-7405, PATCH SUPEE-7616)
Magento 2.0.1 update Go on the root folder of your Magento 2 installation and launch git pull If you have a message like : error: Your local changes to the following files would be overwritten by merge: [..] Please, commit
Module datas setup with Magento 2
Magento 2 Training : Unit 3 – Lesson C Datas setup Now we’ve got our tables and our models, we can add some datas inside ! Before beginning, we will add 2 methods on Job model. Open the file :
Create a model with Magento 2
Magento 2 Training : Unit 3 – Lesson B Models declaration For our first model creation, let’s begin with the “Department” model. On this part, we will create a simple model, without We define : – An event prefix ($_eventPrefix)
Setup management on Magento 2
Magento 2 Training : Unit 3 – Lesson A Module presentation To begin this part of the formation, we will create a new module. It will be a job offer module with 2 models : – A department : this
Xml Schema resolution in PHP Storm with Magento2 Urns
On Magento 2 XML, we declare the path of the XSD schema with this line : <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> But PHP Storm doesn’t know the “urn” part and show the pathfile with red. So, PHP Storm doesn’t check the XML structure with
Create simple module with Magento 2
Magento 2 Training : Unit 2 – Lesson C Before beginning You must declare your module and create your first controller, so make sure to have read these lessons : Declare a new Magento 2 module Create Magento 2 frontend
Create Magento 2 frontend controller
Magento 2 Training : Unit 2 – Lesson B We have declared and created our new custom module. We will learn how to create a frontend controller. The controller can call our module with an URL like : http://magento2.lan/helloworld http://magento2.lan/helloworld/say